Octokit.IssueCommentsClient.Delete C# (CSharp) Method

Delete() public method

Deletes the specified Issue Comment
http://developer.github.com/v3/issues/comments/#delete-a-comment
public Delete ( long repositoryId, int id ) : System.Threading.Tasks.Task
repositoryId long The Id of the repository
id int The comment id
return System.Threading.Tasks.Task
        public Task Delete(long repositoryId, int id)
        {
            return ApiConnection.Delete(ApiUrls.IssueComment(repositoryId, id));
        }
    }

Same methods

IssueCommentsClient::Delete ( string owner, string name, int id ) : System.Threading.Tasks.Task

Usage Example

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

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