コード例 #1
0
 public override void TearDown()
 {
     base.TearDown();
     DeleteUser(_user.id);
     _discussion.Delete(GetAdminTicket(), _discussion_id);
     _discussion.TearDown();
 }
コード例 #2
0
        public void MoveDiscussionThreadTest()
        {
            DiscussionTest discussion    = new DiscussionTest();
            int            discussion_id = discussion.Create(GetAdminTicket());

            discussion.SetUp();
            DiscussionPostTest post = new DiscussionPostTest();

            post.SetUp();
            int post_id = post.Create(GetAdminTicket());

            WebDiscussionService.TransitDiscussionPost t_post = EndPoint.GetDiscussionPostById(GetAdminTicket(), post_id);
            Console.WriteLine("Thread Id: {0}", t_post.DiscussionThreadId);
            EndPoint.MoveDiscussionThread(GetAdminTicket(), t_post.DiscussionThreadId, discussion_id);
            WebDiscussionService.TransitDiscussionThread t_thread = EndPoint.GetDiscussionThreadById(GetAdminTicket(), t_post.DiscussionThreadId);
            Assert.AreEqual(t_thread.DiscussionId, discussion_id);
            post.Delete(GetAdminTicket(), post_id);
            post.TearDown();
            discussion.Delete(GetAdminTicket(), discussion_id);
            discussion.TearDown();
        }