private AddDiscussionComment ( long id, Api.Models.Comment comment ) : Api.Models.Comment | ||
id | long | |
comment | Api.Models.Comment | |
return | Api.Models.Comment |
public virtual Comment AddDiscussionComment(long id, Comment comment)
{
throw new NotSupportedException();
}
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); }