public void TearDown() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(NewsProvider); ServerOperations.News().RemoveSecondDataProvider(); }
public void TearDown() { FeatherServerOperations.Pages().EnableCombineScriptForPages(true); ServerOperations.Widgets().DeleteWidgetTemplate("NewsWidgetTemplate"); }
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); }
public void TearDown() { ServerOperations.Libraries().DeleteLibraries(false, "Video"); }
public void TearDown() { ServerOperations.Forms().DeleteAllForms(); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(this.AdminEmail, this.AdminPass, true); ServerOperations.Users().DeleteUserAndProfile(NewUserEmail); ServerOperations.Templates().DeletePageTemplate("TestHybrid"); }
public void DeleteReviews() { var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); }
public void VerifyMessageReceived() { ServerOperations.Comments().VerifySentNotificationCount(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(); }
public void TearDown() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(); ServerOperations.Taxonomies().ClearAllTags(TaxonomiesConstants.TagsTaxonomyId); }
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); } }
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); }
public void TearDown() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.Images().DeleteAllLibrariesExceptDefaultOne(); }
public void Teardown() { ServerOperations.ModuleBuilder().DeleteAllModules(string.Empty, TransactionName); }
public void OnAfterTestCompletes() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.Events().DeleteAllEvents(); }
public void SetUp() { ServerOperations.Pages().CreatePage(PageName); EventsTestsCommon.CreateEvents(); }
public void DeleteSite() { ServerOperations.MultiSite().DeleteSite(SiteName); }
public void TearDown() { ServerOperations.Events().DeleteAllEvents(); ServerOperations.Pages().DeletePage(PageName); }
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); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.Pages().DeleteAllPages(); ServerOperations.Users().DeleteUserAndProfile(NewUserName); }
public void TearDown() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.Libraries().DeleteLibraries(false, "Image"); }
public void OnAfterTestCompletes() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.Events().DeleteAllEvents(); ServerOperations.Events().DeleteAllCalendarsExceptDefaultOne(); }