public void WebFilesTest() { using (var cc = TestCommon.CreateClientContext(centralSubSiteUrl)) { var result = TestProvisioningTemplate(cc, "files_add.xml", Handlers.Files); FilesValidator fv = new FilesValidator(); Assert.IsTrue(fv.Validate(result.SourceTemplate.Files, cc)); } }
internal void WebFiles(string url) { using (var cc = TestCommon.CreateClientContext(url)) { // Ensure we can test clean DeleteLists(cc); var result = TestProvisioningTemplate(cc, "files_add.xml", Handlers.Files | Handlers.Lists); FilesValidator fv = new FilesValidator(); Assert.IsTrue(fv.Validate(result.SourceTemplate.Files, cc)); } }
public void SiteCollectionFilesTest() { using (var cc = TestCommon.CreateClientContext(centralSiteCollectionUrl)) { // Ensure we can test clean DeleteLists(cc); var result = TestProvisioningTemplate(cc, "files_add.xml", Handlers.Files | Handlers.Lists); FilesValidator fv = new FilesValidator(); Assert.IsTrue(fv.Validate(result.SourceTemplate.Files, cc)); } }
internal void WebDirectoryFiles(string url) { using (var cc = TestCommon.CreateClientContext(url)) { // Ensure we can test clean DeleteLists(cc); var result = TestProvisioningTemplate(cc, "files_add_1605.xml", Handlers.Files | Handlers.Lists); FilesValidator fv = new FilesValidator(); fv.SchemaVersion = Core.Framework.Provisioning.Providers.Xml.XMLConstants.PROVISIONING_SCHEMA_NAMESPACE_2016_05; Assert.IsTrue(fv.Validate1605(result.SourceTemplate, cc)); } }