private CommentForum CreateTestCommentForum(bool isReactiveModeration) { CommentsTests_V1 ct = new CommentsTests_V1(); CommentForum testCommentForum = null; if (isReactiveModeration) { testCommentForum = ct.CommentForumCreate("Tests Reactive", Guid.NewGuid().ToString(), ModerationStatus.ForumStatus.Reactive); } else { testCommentForum = ct.CommentForumCreate("Tests Premod", Guid.NewGuid().ToString(), ModerationStatus.ForumStatus.PreMod); } return testCommentForum; }
public void StartUp() { SnapshotInitialisation.RestoreFromSnapshot(); _context = new FullInputContext(""); _siteList = _context.SiteList; // Create a comment forums to post tweets to, and the corresponding URLs CommentsTests_V1 ct = new CommentsTests_V1(); _commentForumReactive = ct.CommentForumCreate("Tests Reactive", Guid.NewGuid().ToString(),ModerationStatus.ForumStatus.Reactive); _tweetPostUrlReactive= String.Format("http://" + _server + "/dna/api/comments/TwitterService.svc/V1/site/{0}/commentsforums/{1}/",_sitename, _commentForumReactive.Id); _commentForumPremod = ct.CommentForumCreate("Tests Premod", Guid.NewGuid().ToString(),ModerationStatus.ForumStatus.PreMod); _tweetPostUrlPremod = String.Format("http://" + _server + "/dna/api/comments/TwitterService.svc/V1/site/{0}/commentsforums/{1}/", _sitename, _commentForumPremod.Id); }