public void CreatePageAndContent()
        {
            Guid pageID = Guid.NewGuid();

            ServerOperations.Pages().CreateTestPage(pageID, PageTitle);
            ServerOperations.DynamicTypes().PublishAllTypesInFlatModule();
        }
Beispiel #2
0
        public void TearDown()
        {
            ServerOperations.Pages().DeleteAllPages();
            ServerOperations.DynamicTypes().DeleteAllDynamicItemsForAllModules();
            ServerOperations.ModuleBuilder().DeleteAllModules(string.Empty, "Module Installations");

            FeatherServerOperations.ResourcePackages().DeleteSelectorsData(DesignerViewFileName, JsonFileName, ControllerFileName);
        }
Beispiel #3
0
        public void SetUp()
        {
            FeatherServerOperations.ModuleBuilder().EnsureModuleIsImported(this.relatedDataDuplicateModule);

            for (int i = 0; i < 50; i++)
            {
                ServerOperations.DynamicTypes().CreateDynamicItem("Telerik.Sitefinity.DynamicTypes.Model.DuplicateRelatedDataModule.Duplicaterelateddata", "SomeUrlName", title: ItemTitle + i);
            }

            Guid pageId = ServerOperations.Pages().CreatePage(PageName);

            FeatherServerOperations.ResourcePackages().ImportDataForSelectorsTests(FileResource, DesignerViewFileName, FileResourceJson, JsonFileName, ControllerFileResource, ControllerFileName);
            ServerOperations.Widgets().AddMvcWidgetToPage(pageId, typeof(DummyTextController).FullName, WidgetCaption);
        }