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

                Assert.Throws<ArgumentNullException>(() => deployKeysClient.Delete(null, "repo", 1));
                Assert.Throws<ArgumentNullException>(() => deployKeysClient.Delete("user", null, 1));

                Assert.Throws<ArgumentException>(() => deployKeysClient.Delete("", "repo", 1));
                Assert.Throws<ArgumentException>(() => deployKeysClient.Delete("user", "", 1));
            }
            public void CreatesCorrectUrlWithRepositoryId()
            {
                var gitHubClient = Substitute.For<IGitHubClient>();
                var deployKeysClient = new ObservableRepositoryDeployKeysClient(gitHubClient);

                deployKeysClient.Delete(1, 42);

                gitHubClient.Repository.DeployKeys.Received(1).Delete(1, 42);
            }