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

GetAllForRepository() public method

Gets a list of the pull request review comments in a specified repository.
http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository
public GetAllForRepository ( string owner, string name, PullRequestReviewCommentRequest request, ApiOptions options ) : IObservable
owner string The owner of the repository
name string The name of the repository
request PullRequestReviewCommentRequest The sorting parameters
options ApiOptions Options for changing the API response
return IObservable
        public IObservable<PullRequestReviewComment> GetAllForRepository(string owner, string name, PullRequestReviewCommentRequest request, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");
            Ensure.ArgumentNotNull(request, "request");
            Ensure.ArgumentNotNull(options, "options");

            return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewCommentsRepository(owner, name), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview,
                options);
        }

Same methods

ObservablePullRequestReviewCommentsClient::GetAllForRepository ( long repositoryId ) : IObservable
ObservablePullRequestReviewCommentsClient::GetAllForRepository ( long repositoryId, ApiOptions options ) : IObservable
ObservablePullRequestReviewCommentsClient::GetAllForRepository ( long repositoryId, PullRequestReviewCommentRequest request ) : IObservable
ObservablePullRequestReviewCommentsClient::GetAllForRepository ( long repositoryId, PullRequestReviewCommentRequest request, ApiOptions options ) : IObservable
ObservablePullRequestReviewCommentsClient::GetAllForRepository ( string owner, string name ) : IObservable
ObservablePullRequestReviewCommentsClient::GetAllForRepository ( string owner, string name, ApiOptions options ) : IObservable
ObservablePullRequestReviewCommentsClient::GetAllForRepository ( string owner, string name, PullRequestReviewCommentRequest request ) : IObservable

Usage Example

            public async Task EnsuresNonNullArguments()
            {
                var client = new ObservablePullRequestReviewCommentsClient(Substitute.For<IGitHubClient>());

                var request = new PullRequestReviewCommentRequest();

                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(null, "name", ApiOptions.None));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", null, ApiOptions.None));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", "name", (ApiOptions)null));

                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(null, "name", request));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", null, request));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", "name", (PullRequestReviewCommentRequest)null));

                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(null, "name", request, ApiOptions.None));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", null, request, ApiOptions.None));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", "name", null, ApiOptions.None));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository("owner", "name", request, null));

                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(1, (ApiOptions)null));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(1, (PullRequestReviewCommentRequest)null));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(1, null, ApiOptions.None));
                Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(1, request, null));

                Assert.Throws<ArgumentException>(() => client.GetAllForRepository("", "name", ApiOptions.None));
                Assert.Throws<ArgumentException>(() => client.GetAllForRepository("owner", "", ApiOptions.None));
                Assert.Throws<ArgumentException>(() => client.GetAllForRepository("", "name", request));
                Assert.Throws<ArgumentException>(() => client.GetAllForRepository("owner", "", request));
                Assert.Throws<ArgumentException>(() => client.GetAllForRepository("", "name", request, ApiOptions.None));
                Assert.Throws<ArgumentException>(() => client.GetAllForRepository("owner", "", request, ApiOptions.None));
            }
All Usage Examples Of Octokit.Reactive.ObservablePullRequestReviewCommentsClient::GetAllForRepository