Smartsheet.Api.Internal.DiscussionResourcesImpl.AddDiscussionComment C# (CSharp) Method

AddDiscussionComment() private method

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();
        }

Usage Example

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);
        }