public void EnsureNonNullArguments()
            {
                var client = new ObservableStatisticsClient(Substitute.For<IGitHubClient>());

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

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

                statisticsClient.GetParticipation(1);

                gitHubClient.Repository.Statistics.Received().GetParticipation(1);
            }