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 |
Résultat | 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));
}
IssueCommentsClient::Update ( string owner, string name, int id, string commentUpdate ) : Task |
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)); }