Ejemplo n.º 1
0
        public void Should_Pass_On_Valid_SSOM_Invalid_CSOM()
        {
            var model = SPMeta2Model.NewWebApplicationModel(webApp =>
            {
                webApp.AddSite(ModelGeneratorService.GetRandomDefinition <SiteDefinition>());
            });

            // - CSOM / + SSOM
            Assert.IsFalse(SPMeta2Model.IsCSOMCompatible(model));
            Assert.IsTrue(SPMeta2Model.IsSSOMCompatible(model));
        }
Ejemplo n.º 2
0
        public void Should_Pass_On_Valid_SSOM_Invalid_CSOM_2()
        {
            var model = SPMeta2Model.NewFarmModel(farm =>
            {
                farm.AddProperty(ModelGeneratorService.GetRandomDefinition <PropertyDefinition>());
            });

            // - CSOM / + SSOM
            Assert.IsFalse(SPMeta2Model.IsCSOMCompatible(model));
            Assert.IsTrue(SPMeta2Model.IsSSOMCompatible(model));
        }
Ejemplo n.º 3
0
        public void Should_Pass_On_Valid_SSOM_CSOM()
        {
            var model = SPMeta2Model.NewSiteModel(site =>
            {
                site.AddField(ModelGeneratorService.GetRandomDefinition <FieldDefinition>());
            });

            // both CSOM / SSOM
            Assert.IsTrue(SPMeta2Model.IsCSOMCompatible(model));
            Assert.IsTrue(SPMeta2Model.IsSSOMCompatible(model));
        }