Пример #1
0
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.News().DeleteAllNews(NewsProvider);
     ServerOperations.News().RemoveSecondDataProvider();
 }
 public void TearDown()
 {
     FeatherServerOperations.Pages().EnableCombineScriptForPages(true);
     ServerOperations.Widgets().DeleteWidgetTemplate("NewsWidgetTemplate");
 }
Пример #3
0
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
 }
        public void ClearUp()
        {
            AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true);
            ServerOperations.Videos().DeleteLibrary(AlbumName, false);
            ServerOperations.Pages().DeleteAllPages();

            if (System.IO.Directory.Exists(this.tempFolderPath))
            {
                ServerOperations.ModuleBuilder().DeleteDirectory(this.tempFolderPath);
            }

            ServerOperations.Packaging().DeleteAllPackagesFromDB();

            for (int i = 0; i < this.widgetTemplatesNames.Length; i++)
            {
                ServerOperations.Widgets().DeleteWidgetTemplate(this.widgetTemplatesNames[i]);
            }

            for (int i = 0; i < ServerOperations.CustomFieldsNames().FieldNamesWithoutClassificationsEdited.Length; i++)
            {
                ServerOperations.CustomFields().RemoveCustomFieldsFromContent(VideosType, ServerOperations.CustomFieldsNames().FieldNamesWithoutClassificationsEdited[i]);
                ServerOperations.CustomFields().RemoveCustomFieldsFromContent(VideosType, flatClassificationVideo);
                ServerOperations.CustomFields().RemoveCustomFieldsFromContent(VideosType, hierarchicalClassificationVideo);
            }

            ServerOperations.Taxonomies().DeleteHierarchicalTaxonomy(hierarchicalClassificationVideo);
            ServerOperations.Taxonomies().DeleteFlatTaxonomy(flatClassificationVideo);
        }
Пример #5
0
 public void TearDown()
 {
     ServerOperations.Libraries().DeleteLibraries(false, "Video");
 }
Пример #6
0
 public void TearDown()
 {
     ServerOperations.Forms().DeleteAllForms();
 }
Пример #7
0
 public void TearDown()
 {
     AuthenticationHelper.AuthenticateUser(this.AdminEmail, this.AdminPass, true);
     ServerOperations.Users().DeleteUserAndProfile(NewUserEmail);
     ServerOperations.Templates().DeletePageTemplate("TestHybrid");
 }
Пример #8
0
        public void DeleteReviews()
        {
            var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString();

            ServerOperations.Comments().DeleteAllComments(siteID);
        }
Пример #9
0
 public void VerifyMessageReceived()
 {
     ServerOperations.Comments().VerifySentNotificationCount(0);
 }
Пример #10
0
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Users().DeleteUserAndProfile(this.AdninistratorEmail);
     ServerOperations.Documents().DeleteAllLibrariesExceptDefaultOne();
 }
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Search().DeleteAllIndexes();
     ServerOperations.News().DeleteAllNews();
 }
Пример #12
0
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.News().DeleteAllNews();
     ServerOperations.Taxonomies().ClearAllTags(TaxonomiesConstants.TagsTaxonomyId);
 }
Пример #13
0
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(page1Id);
        }
        public void EventWidget_AllEvents_FilterByCalendar()
        {
            var methodName = MethodInfo.GetCurrentMethod().Name;
            var calendarId = ServerOperations.Events().CreateCalendar(Guid.NewGuid(), "custom_calendar");

            ServerOperations.Events().CreateEvent(methodName + "_fromdefault", "some content", false, DateTime.Now, DateTime.Now.AddHours(2), ServerOperations.Events().GetDefaultCalendarId());
            ServerOperations.Events().CreateEvent(methodName + "_fromcustom", "some content", false, DateTime.Now, DateTime.Now.AddHours(2), calendarId);

            try
            {
                var mvcProxy = new MvcControllerProxy();
                mvcProxy.ControllerName = typeof(EventController).FullName;
                var eventController = new EventController();

                eventController.Model.NarrowSelectionMode = Telerik.Sitefinity.Frontend.Mvc.Models.SelectionMode.FilteredItems;
                eventController.Model.SerializedNarrowSelectionFilters = this.GetNarrowSelectionSerializedQueryData("Calendars", "Parent.Id.ToString()", "Parent.Id", calendarId, "System.String");

                mvcProxy.Settings = new ControllerSettings(eventController);

                using (var generator = new PageContentGenerator())
                {
                    generator.CreatePageWithWidget(mvcProxy, null, methodName, methodName, methodName, 0);
                    var pageContent = WebRequestHelper.GetPageWebContent(RouteHelper.GetAbsoluteUrl("~/" + methodName + "0"));

                    Assert.Contains(pageContent, methodName + "_fromcustom", System.StringComparison.Ordinal);
                    Assert.DoesNotContain(pageContent, methodName + "_fromdefault", System.StringComparison.Ordinal);
                }
            }
            finally
            {
                ServerOperations.Events().DeleteAllEvents();
                ServerOperations.Events().DeleteCalendar(calendarId);
            }
        }
Пример #15
0
        public void GetCurrentProviderUrlName()
        {
            string urlName = ServerOperations.Media().GetCurrentProviderUrlName;

            ServerArrangementContext.GetCurrent().Values.Add("CurrentProviderUrlName", urlName);
        }
 public void SetUp()
 {
     Guid templateId   = ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);
     Guid parentPageId = ServerOperations.Pages().CreatePage(PageName, templateId);
 }
Пример #17
0
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Images().DeleteAllLibrariesExceptDefaultOne();
 }
 public void Teardown()
 {
     ServerOperations.ModuleBuilder().DeleteAllModules(string.Empty, TransactionName);
 }
Пример #19
0
 public void OnAfterTestCompletes()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Events().DeleteAllEvents();
 }
Пример #20
0
 public void SetUp()
 {
     ServerOperations.Pages().CreatePage(PageName);
     EventsTestsCommon.CreateEvents();
 }
 public void DeleteSite()
 {
     ServerOperations.MultiSite().DeleteSite(SiteName);
 }
Пример #22
0
 public void TearDown()
 {
     ServerOperations.Events().DeleteAllEvents();
     ServerOperations.Pages().DeletePage(PageName);
 }
Пример #23
0
 public void TearDown()
 {
     ServerOperations.Forms().DeleteAllForms();
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Widgets().DeleteWidgetTemplate(TemplateName);
 }
 public void DisableComments()
 {
     ServerOperations.Comments().AllowComments(ThreadType, false);
 }
 public void RestartApp()
 {
     ServerOperations.SystemManager().RestartApplication(false);
     WaitUtils.WaitForSitefinityToStart(HttpContext.Current.Request.Url
                                        .GetLeftPart(UriPartial.Authority) + (HostingEnvironment.ApplicationVirtualPath.TrimEnd('/') ?? string.Empty));
 }
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Templates().DeletePageTemplate("template with content block feather widget");
 }
 public void OnAfterTestCompletes()
 {
     ServerOperations.Events().DeleteAllEvents();
     ServerOperations.Templates().DeletePageTemplate(CaptionCalendar);
 }
Пример #28
0
 public void TearDown()
 {
     AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true);
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Users().DeleteUserAndProfile(NewUserName);
 }
Пример #29
0
 public void TearDown()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Libraries().DeleteLibraries(false, "Image");
 }
Пример #30
0
 public void OnAfterTestCompletes()
 {
     ServerOperations.Pages().DeleteAllPages();
     ServerOperations.Events().DeleteAllEvents();
     ServerOperations.Events().DeleteAllCalendarsExceptDefaultOne();
 }