public CreateReply ( long repositoryId, int number, PullRequestReviewCommentReplyCreate comment ) : IObservable |
||
repositoryId | long | The Id of the repository |
number | int | The pull request number |
comment | PullRequestReviewCommentReplyCreate | The comment |
return | IObservable |
public IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int number, PullRequestReviewCommentReplyCreate comment)
{
Ensure.ArgumentNotNull(comment, "comment");
return _client.CreateReply(repositoryId, number, comment).ToObservable();
}
ObservablePullRequestReviewCommentsClient::CreateReply ( string owner, string name, int number, PullRequestReviewCommentReplyCreate comment ) : IObservable |
public async Task EnsuresNonNullArguments() { var gitHubClient = Substitute.For<IGitHubClient>(); var client = new ObservablePullRequestReviewCommentsClient(gitHubClient); string body = "Comment content"; int inReplyTo = 7; var comment = new PullRequestReviewCommentReplyCreate(body, inReplyTo); Assert.Throws<ArgumentNullException>(() => client.CreateReply(null, "name", 1, comment)); Assert.Throws<ArgumentNullException>(() => client.CreateReply("owner", null, 1, comment)); Assert.Throws<ArgumentNullException>(() => client.CreateReply("owner", "name", 1, null)); Assert.Throws<ArgumentNullException>(() => client.CreateReply(1, 1, null)); Assert.Throws<ArgumentException>(() => client.CreateReply("", "name", 1, comment)); Assert.Throws<ArgumentException>(() => client.CreateReply("owner", "", 1, comment)); }