public void ContentBlock_PureMvcPageWithContentBlockWidget_VerifySearch() { string searchIndex = "TestSearchIndex"; var searchIndexId = Guid.NewGuid(); try { searchIndexId = ServerOperations.Search().CreateIndex(searchIndex); var templateId = FeatherServerOperations.Pages().CreatePureMvcTemplate(PageTemplate); var pageId = ServerOperations.Pages().CreatePage(PageTitle, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(pageId, ContentBlockText); this.Reindex(searchIndexId); this.SearchWithWaitOperation(searchIndex, ContentBlockText, 1); } finally { ServerOperations.Pages().DeleteAllPages(); ServerOperations.Templates().DeletePageTemplate(PageTemplate); this.DeleteSearchIndex(searchIndex, searchIndexId); this.EmptySearchFoler(); } }
public void SetUp() { ServerOperations.News().CreatePublishedNewsItemLiveId(NewsTitle1, NewsContent, NewsAuthor, NewsSource); ServerOperations.News().CreatePublishedNewsItemLiveId(NewsTitle2, NewsContent, NewsAuthor, NewsSource); ServerOperations.Pages().CreatePage(SearchPageTitle); Guid newsPageId = ServerOperations.Pages().CreatePage(NewsPageTitle); ServerOperationsFeather.Pages().AddNewsWidgetToPage(newsPageId); Guid searchIndexId = ServerOperations.Search().CreateSearchIndex(SearchIndexName, new[] { SearchContentType.News }); ServerOperations.Search().Reindex(searchIndexId); }
public void SetUp() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.News().CreatePublishedNewsItemLiveId(NewsTitle1, NewsContent, NewsAuthor, NewsSource); ServerOperations.News().CreatePublishedNewsItemLiveId(NewsTitle2, NewsContent, NewsAuthor, NewsSource); Guid searchIndexId = ServerOperations.Search().CreateSearchIndex(SearchIndexName, new[] { SearchContentType.News }); ServerOperations.Search().Reindex(searchIndexId); Guid templateId = ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); ServerOperations.Pages().CreatePage(SearchPageTitle, templateId); Guid newsPageId = ServerOperations.Pages().CreatePage(NewsPageTitle); ServerOperationsFeather.Pages().AddNewsWidgetToPage(newsPageId); }
public void SetUp() { Guid pageId = ServerOperations.Pages().CreatePage(PageName); for (int i = 1; i < 6; i++) { ServerOperationsFeather.NewsOperations().CreatePublishedNewsItem(NewsTitle + i, NewsContent, "AuthorName", "SourceName", null, null, null); } ServerOperationsFeather.Pages().AddNewsWidgetToPage(pageId); ServerOperations.Pages().CreatePage(SearchPageTitle); ServerOperations.Pages().CreatePage(ResultsPageTitle); Guid searchIndexId = ServerOperations.Search().CreateIndex(SearchIndexName, new[] { SearchContentType.News }); ServerOperations.Search().Reindex(searchIndexId); }
public void TearDown() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.Search().DeleteAllIndexes(); ServerOperations.News().DeleteAllNews(); }