public void TearDown() { ServerOperations.Configuration().EnableRatings(false); ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(); ServerOperations.Comments().DeleteAllComments(this.key); }
public void SetUp() { ServerOperations.Comments().AllowComments(ThreadType, true); Guid templateId = ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); ServerOperations.Pages().CreatePage(PageName, templateId); }
public void SetUp() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.Comments().RequireAuthentication(ThreadType, true); ServerOperations.Configuration().EnableRatings(true); ServerOperations.News().CreatePublishedNewsItemLiveId(NewsTitle, NewsContent, NewsAuthor, NewsSource); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddNewsWidgetToPage(pageId, "Contentplaceholder1"); if (ServerOperations.MultiSite().CheckIsMultisiteMode()) { Guid pageId2 = Guid.NewGuid(); ServerOperations.Multilingual().Pages().CreatePageMultilingual(pageId2, PageTitleLogin, true, "en"); ServerOperations.Widgets().AddControlToPage(pageId2, ControlTypes.LoginWidget, "Body", "Login"); ServerOperations.MultiSite().AddPublicLoginPageToSite(pageId2); } else { Guid pageIdLogIn = Guid.NewGuid(); ServerOperations.Pages().CreateTestPage(pageIdLogIn, PageTitleLogin); ServerOperations.Widgets().AddControlToPage(pageIdLogIn, ControlTypes.LoginWidget, "Body", "Login"); ServerOperations.Comments().SetDefaultLoginPageUrl(LoginURL); } }
public void TearDown() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.Configuration().EnableRatings(false); ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(); ServerOperations.Comments().DeleteAllComments(this.key); }
public void TearDown() { ServerOperations.Pages().DeleteAllPages(); var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); ServerOperations.Comments().AllowComments(ThreadType, false); }
public void SetUp() { ServerOperations.Comments().AllowComments(ThreadType, true); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddReviewsWidgetToPage(pageId, "Contentplaceholder1"); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(this.AdminEmail, this.AdminPass, true); ServerOperations.Comments().RequireAuthentication(ThreadType, false); ServerOperations.Configuration().EnableRatings(false); ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(); ServerOperations.Comments().DeleteAllComments(this.key); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.Comments().RequireAuthentication(ThreadType, false); ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(); ServerOperations.Comments().DeleteAllComments(this.key); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.Pages().DeleteAllPages(); var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); ServerOperations.Comments().AllowComments(ThreadType, false); }
public void SetUp() { AuthenticationHelper.AuthenticateUser(this.AdminEmail, this.AdminPass, true); ServerOperations.Comments().AllowComments(ThreadType, true); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddCommentsWidgetToPage(pageId, "Contentplaceholder1"); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(this.AdminEmail, this.AdminPass, true); ServerOperations.Pages().DeleteAllPages(); var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); ServerOperations.Comments().AllowComments(ThreadType, false); ServerOperations.Users().DeleteUserAndProfile(NewUserEmail); }
public void SetUp() { ServerOperations.Comments().AllowComments(ThreadType, true); var domainKey = ServerOperations.Comments().GetCurrentSiteId.ToString(); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddReviewsWidgetToPage(pageId, "Contentplaceholder1"); ServerOperationsFeather.CommentsAndReviews().CreateReview(domainKey, ThreadType, pageId, PageName, ReviewsMessage, ReviewsRating, ReviewsStatusPublish); }
public void SetUp() { ServerOperations.Comments().AllowComments(ThreadType, true); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddCommentsWidgetToPage(pageId, "Contentplaceholder1"); var groupKey = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().CreateComment(groupKey, ThreadType, pageId, PageName, CommentToPage, "published", false); }
public void SetUp() { Guid newsId = ServerOperations.News().CreatePublishedNewsItemLiveId(NewsTitle, NewsContent, NewsAuthor, NewsSource); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddNewsWidgetToPage(pageId, "Contentplaceholder1"); ServerOperations.Comments().CreatePublishedComments(2, this.key, ThreadType, newsId, NewsTitle, CommentMessage); }
public void TearDown() { AuthenticationHelper.AuthenticateUser("admin", "admin@2", true); ServerOperations.Comments().SetCommentsNotificationProfile("Default"); NotificationsTestHelper.ResetDummySmtpSenderData(profileName: UnsubscribeUserForReviewsNotification.NotificationsProfileName, cleanOnly: true); ServerOperations.Pages().DeleteAllPages(); var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); ServerOperations.Comments().AllowComments(ThreadType, false); ServerOperations.Comments().EnableEmailSubscription(ThreadType, false); }
public void TearDown() { AuthenticationHelper.AuthenticateUser(this.AdminEmail, this.AdminPass, true); ServerOperations.Comments().SetCommentsNotificationProfile("Default"); Telerik.Sitefinity.TestUtilities.Services.Notifications.NotificationsTestHelper.ResetDummySmtpSenderData(profileName: SubscribeUserForReviewsNotificationAndVerifyReceivedEmail.NotificationsProfileName, cleanOnly: true); ServerOperations.Pages().DeleteAllPages(); var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); ServerOperations.Comments().AllowComments(ThreadType, false); ServerOperations.Comments().EnableEmailSubscription(ThreadType, false); }
public void SetUp() { ServerOperations.Comments().AllowComments(ThreadType, true); NotificationsTestHelper.ResetDummySmtpSenderData(profileName: UnsubscribeUserForReviewsNotification.NotificationsProfileName); ServerOperations.Comments().SetCommentsNotificationProfile(UnsubscribeUserForReviewsNotification.NotificationsProfileName); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddReviewsWidgetToPage(pageId, "Contentplaceholder1"); ServerOperations.Comments().EnableEmailSubscription(ThreadType, true); }
public void TearDown() { AuthenticationHelper.AuthenticateUser("admin", "admin@2", true); ServerOperations.Comments().SetCommentsNotificationProfile("Default"); // Use the following line once the Sitefinity is updated to 9.0. // Telerik.Sitefinity.TestUtilities.Services.Notifications.NotificationsTestHelper.ResetDummySmtpSenderData(profileName: SubscribeUserForCommentsNotificationAndVerifyReceivedEmail.NotificationsProfileName, cleanOnly: true); NotificationsTestHelper.ResetDummySmtpSenderData(profileName: SubscribeUserForCommentsNotificationAndVerifyReceivedEmail.NotificationsProfileName, cleanOnly: true); ServerOperations.Pages().DeleteAllPages(); var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); ServerOperations.Comments().AllowComments(ThreadType, false); ServerOperations.Comments().EnableEmailSubscription(ThreadType, false); }
public void SetUp() { AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true); ServerOperations.Comments().AllowComments(ThreadType, true); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddReviewsWidgetToPage(pageId, "Contentplaceholder1"); ServerOperations.Users().CreateUserWithProfileAndRoles(NewUserName, NewUserPassword, NewUserFirstName, NewUserLastName, NewUserEmail, new List <string> { "BackendUsers", "Administrators" }); AuthenticationHelper.LogoutUser(AdminUserName); }
public void SetUp() { ServerOperations.Comments().AllowComments(ThreadType, true); NotificationsTestHelper.ResetDummySmtpSenderData(profileName: SubscribeUserForCommentsNotificationAndVerifyReceivedEmail.NotificationsProfileName); ServerOperations.Comments().SetCommentsNotificationProfile(SubscribeUserForCommentsNotificationAndVerifyReceivedEmail.NotificationsProfileName); Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName); Guid pageId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId); pageId = ServerOperations.Pages().GetPageNodeId(pageId); ServerOperationsFeather.Pages().AddCommentsWidgetToPage(pageId, "Contentplaceholder1"); var groupKey = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().CreateComment(groupKey, ThreadType, pageId, PageName, CommentToPage, "published", false); ServerOperations.Comments().EnableEmailSubscription(ThreadType, true); }
public void TearDown() { ServerOperations.Pages().DeleteAllPages(); ServerOperations.News().DeleteAllNews(); ServerOperations.Comments().DeleteAllComments(this.key); }
public void EnableEmailNotifications() { ServerOperations.Comments().EnableEmailSubscription(ThreadType, true); }
public void DeleteReviews() { var siteID = ServerOperations.Comments().GetCurrentSiteId.ToString(); ServerOperations.Comments().DeleteAllComments(siteID); }
public void VerifyMessageContent() { ServerOperations.Comments().AssertNotificationBodyContainsExpectedMessage(PageName, 1); ServerOperations.Comments().AssertNotificationBodyContainsExpectedMessage(NewCommentToPage, 1); }
public void VerifyMessageReceived() { ServerOperations.Comments().VerifySomeMessagesReceived(); ServerOperations.Comments().VerifySentNotificationCount(1); }
public void DisableComments() { ServerOperations.Comments().AllowComments(ThreadType, false); }