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

                var newTag = new NewTag { Type = TaggedType.Tree };

                client.Create(1, newTag);

                gitHubClient.Received().Git.Tag.Create(1, newTag);
            }
            public void EnsuresNonNullArguments()
            {
                var client = new ObservableTagsClient(Substitute.For<IGitHubClient>());

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

                Assert.Throws<ArgumentNullException>(() => client.Create(1, null));

                Assert.Throws<ArgumentException>(() => client.Create("", "name", new NewTag()));
                Assert.Throws<ArgumentException>(() => client.Create("owner", "", new NewTag()));
            }