AddDiscussionComment() private method

private AddDiscussionComment ( long id, Api.Models.Comment comment ) : Api.Models.Comment
id long
comment Api.Models.Comment
return Api.Models.Comment
Example #1
0
        public virtual void TestAddDiscussionComment()
        {
            server.setResponseBody("../../../TestSDK/resources/addDiscussionComment.json");

            Comment comment = new Comment();

            comment.Text = "Some new Text";

            Comment newComment = discussionResources.AddDiscussionComment(1234L, comment);

            Assert.AreEqual("Some new text", newComment.Text);
            Assert.AreEqual("Brett Batie", newComment.CreatedBy.Name);
        }