Octokit.IssueCommentsClient.Update C# (CSharp) Method

Update() public method

Updates a specified Issue Comment.
http://developer.github.com/v3/issues/comments/#edit-a-comment
public Update ( long repositoryId, int id, string commentUpdate ) : Task
repositoryId long The Id of the repository
id int The comment id
commentUpdate string The modified comment
return Task
        public Task<IssueComment> Update(long repositoryId, int id, string commentUpdate)
        {
            Ensure.ArgumentNotNull(commentUpdate, "commentUpdate");

            return ApiConnection.Patch<IssueComment>(ApiUrls.IssueComment(repositoryId, id), new BodyWrapper(commentUpdate));
        }

Same methods

IssueCommentsClient::Update ( string owner, string name, int id, string commentUpdate ) : Task

Usage Example

        public async Task EnsuresArgumentsNotNull()
        {
            var connection = Substitute.For<IApiConnection>();
            var client = new IssueCommentsClient(connection);

            await AssertEx.Throws<ArgumentNullException>(async () => await client.Update(null, "name", 42, "title"));
            await AssertEx.Throws<ArgumentException>(async () => await client.Update("", "name", 42, "x"));
            await AssertEx.Throws<ArgumentNullException>(async () => await client.Update("owner", null, 42, "x"));
            await AssertEx.Throws<ArgumentException>(async () => await client.Update("owner", "", 42, "x"));
            await AssertEx.Throws<ArgumentNullException>(async () => await client.Update("owner", "name", 42, null));
        }
All Usage Examples Of Octokit.IssueCommentsClient::Update