/// <summary> /// Unstars a repository for the authenticated user. /// </summary> /// <param name="owner">The owner of the repository to unstar</param> /// <param name="name">The name of the repository to unstar</param> public IObservable <bool> UnwatchRepo(string owner, string name) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); return(_client.UnwatchRepo(owner, name).ToObservable()); }
public async Task WatchRepo() { var newSubscription = new NewSubscription { Subscribed = true }; await _watchingClient.UnwatchRepo("octocat", "hello-worId"); var subscription = await _watchingClient.WatchRepo("octocat", "hello-worId", newSubscription); Assert.NotNull(subscription); var newWatchers = await _watchingClient.GetAllWatchers("octocat", "hello-worId"); var @default = newWatchers.FirstOrDefault(user => user.Login == Helper.UserName); Assert.NotNull(@default); }