Beispiel #1
0
        public void SiteCollectionComposedLookTest()
        {
            using (var cc = TestCommon.CreateClientContext(centralSiteCollectionUrl))
            {
                // Add supporting files
                TestProvisioningTemplate(cc, "composedlook_files.xml", Handlers.Files);

                var result = TestProvisioningTemplate(cc, "composedlook_add_1.xml", Handlers.ComposedLook);
                ComposedLookValidator composedLookVal = new ComposedLookValidator();
                Assert.IsTrue(composedLookVal.Validate(result.SourceTemplate.ComposedLook, result.TargetTemplate.ComposedLook));

                var result2 = TestProvisioningTemplate(cc, "composedlook_add_2.xml", Handlers.ComposedLook);
                Assert.IsTrue(composedLookVal.Validate(result2.SourceTemplate.ComposedLook, result2.TargetTemplate.ComposedLook));
            }
        }
Beispiel #2
0
        internal void SiteCollectionComposedLook(string url)
        {
            using (var cc = TestCommon.CreateClientContext(url))
            {
                if (!cc.Web.IsNoScriptSite())
                {
                    // Add supporting files
                    TestProvisioningTemplate(cc, "composedlook_files.xml", Handlers.Files);

                    var result = TestProvisioningTemplate(cc, "composedlook_add_1.xml", Handlers.ComposedLook);
                    ComposedLookValidator composedLookVal = new ComposedLookValidator();
                    Assert.IsTrue(composedLookVal.Validate(result.SourceTemplate.ComposedLook, result.TargetTemplate.ComposedLook));

                    var result2 = TestProvisioningTemplate(cc, "composedlook_add_2.xml", Handlers.ComposedLook);
                    Assert.IsTrue(composedLookVal.Validate(result2.SourceTemplate.ComposedLook, result2.TargetTemplate.ComposedLook));
                }
            }
        }