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

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

                Assert.Throws <ArgumentException>(() => client.RequestPageBuild("", "name"));
                Assert.Throws <ArgumentException>(() => client.RequestPageBuild("owner", ""));
            }
            public void PostsToCorrectUrlWithRepositoryId()
            {
                var gitHubClient = Substitute.For <IGitHubClient>();
                var client       = new ObservableRepositoryPagesClient(gitHubClient);

                client.RequestPageBuild(1);

                gitHubClient.Received().Repository.Page.RequestPageBuild(1);
            }