Octokit.Reactive.ObservablePullRequestReviewCommentsClient.Edit C# (CSharp) Method

Edit() public method

Edits a comment on a pull request review.
http://developer.github.com/v3/pulls/comments/#edit-a-comment
public Edit ( long repositoryId, int number, PullRequestReviewCommentEdit comment ) : IObservable
repositoryId long The Id of the repository
number int The pull request review comment number
comment PullRequestReviewCommentEdit The edited comment
return IObservable
        public IObservable<PullRequestReviewComment> Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment)
        {
            Ensure.ArgumentNotNull(comment, "comment");

            return _client.Edit(repositoryId, number, comment).ToObservable();
        }

Same methods

ObservablePullRequestReviewCommentsClient::Edit ( string owner, string name, int number, PullRequestReviewCommentEdit comment ) : IObservable

Usage Example

            public void PostsToCorrectUrlWithRepositoryId()
            {
                var gitHubClient = Substitute.For<IGitHubClient>();
                var client = new ObservablePullRequestReviewCommentsClient(gitHubClient);

                var comment = new PullRequestReviewCommentEdit("New comment content");

                client.Edit(1, 13, comment);

                gitHubClient.PullRequest.ReviewComment.Received().Edit(1, 13, comment);
            }
All Usage Examples Of Octokit.Reactive.ObservablePullRequestReviewCommentsClient::Edit