CreateDiscussionWithAttachment() public method

Creates a new Discussion attached with an Attachment on a Sheet.

It mirrors To the following Smartsheet REST API method:
POST /sheets/{sheetId}/discussions

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public CreateDiscussionWithAttachment ( long sheetId, Discussion discussion, string file, string fileType ) : Discussion
sheetId long the id of the sheet
discussion Smartsheet.Api.Models.Discussion the discussion to add
file string the file path
fileType string the file type, can be null
return Smartsheet.Api.Models.Discussion
        public virtual void TestCreateDiscussionWithAttachment()
        {
            // Will fail unless Attachment is properly implemented
            server.setResponseBody("../../../TestSDK/resources/createDiscussionWithAttachment.json");

            string  file    = @"..\..\..\TestSDK\resources\wordFile.docx";
            Comment comment = new Comment();

            comment.Text = "Please review the attached image.";
            Discussion discussion    = new Discussion.CreateDiscussionBuilder("a title", comment).Build();
            Discussion newDiscussion = sheetDiscussionResourcesImpl.CreateDiscussionWithAttachment(13654, discussion, file, null);

            Assert.True(discussion.Title == newDiscussion.Title);
            //Assert.True(discussion.Comment.Text == newDiscussion.Comments[0].Text);
            Assert.True(newDiscussion.Comments[0].CreatedBy.Email == "*****@*****.**");
            Assert.True(newDiscussion.Comments[0].Attachments[0].ParentId == 5706209564092292);
        }