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

                Assert.Throws <ArgumentNullException>(() => client.UnwatchRepo(null, "name"));
                Assert.Throws <ArgumentNullException>(() => client.UnwatchRepo("owner", null));
                Assert.Throws <ArgumentException>(() => client.UnwatchRepo("", "name"));
                Assert.Throws <ArgumentException>(() => client.UnwatchRepo("owner", ""));
            }
            public void CallIntoClient()
            {
                var gitHub = Substitute.For <IGitHubClient>();
                var client = new ObservableWatchedClient(gitHub);

                client.UnwatchRepo("owner", "name");

                gitHub.Activity.Watching.Received().UnwatchRepo("owner", "name");
            }
            public void RequestsCorrectUrlWithRepositoryId()
            {
                var gitHub = Substitute.For <IGitHubClient>();
                var client = new ObservableWatchedClient(gitHub);

                client.UnwatchRepo(1);

                gitHub.Activity.Watching.Received().UnwatchRepo(1);
            }