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

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

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

                statisticsClient.GetPunchCard(1);

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