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

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

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

                client.Delete(1, 12345678);

                gitHubClient.Received().Repository.Hooks.Delete(1, 12345678);
            }