public Get ( long repositoryId, int id ) : Task |
||
repositoryId | long | The Id of the repository |
id | int | The issue comment id |
return | Task |
public Task<IssueComment> Get(long repositoryId, int id)
{
return ApiConnection.Get<IssueComment>(ApiUrls.IssueComment(repositoryId, id), null, AcceptHeaders.ReactionsPreview);
}
IssueCommentsClient::Get ( string owner, string name, int id ) : Task |
public async Task EnsuresNonNullArguments() { var client = new IssueCommentsClient(Substitute.For<IApiConnection>()); await AssertEx.Throws<ArgumentNullException>(async () => await client.Get(null, "name", 1)); await AssertEx.Throws<ArgumentException>(async () => await client.Get("", "name", 1)); await AssertEx.Throws<ArgumentNullException>(async () => await client.Get("owner", null, 1)); await AssertEx.Throws<ArgumentException>(async () => await client.Get("owner", "", 1)); }