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

                Assert.Throws <ArgumentNullException>(() => client.Get(null, "name", 1, 1));
                Assert.Throws <ArgumentNullException>(() => client.Get("owner", null, 1, 1));

                Assert.Throws <ArgumentException>(() => client.Get("", "name", 1, 1));
                Assert.Throws <ArgumentException>(() => client.Get("owner", "", 1, 1));
            }
            public void RequestsCorrectUrlWithRepositoryId()
            {
                var gitHubClient = Substitute.For <IGitHubClient>();
                var client       = new ObservablePullRequestReviewsClient(gitHubClient);

                client.Get(1, 53, 2);

                gitHubClient.Received().PullRequest.Review.Get(1, 53, 2);
            }
            public void RequestsCorrectUrl()
            {
                var gitHubClient = Substitute.For <IGitHubClient>();
                var client       = new ObservablePullRequestReviewsClient(gitHubClient);

                client.Get("owner", "name", 53, 2);

                gitHubClient.Received().PullRequest.Review.Get("owner", "name", 53, 2);
            }