public void RedmineIssues_ShouldAddWatcher() { redmineManager.AddWatcher(19, 2); Issue issue = redmineManager.GetObject <Issue>("19", new NameValueCollection { { "include", "watchers" } }); Assert.IsTrue(((List <Watcher>)issue.Watchers).Find(w => w.Id == 2) != null); }
public void RedmineIssues_ShouldAddWatcher() { redmineManager.AddWatcher(watcherIssueId, watcherUserId); Issue issue = redmineManager.GetObject <Issue>(watcherIssueId.ToString(), new NameValueCollection { { "include", "watchers" } }); Assert.IsTrue(((List <Watcher>)issue.Watchers).Find(w => w.Id == watcherUserId) != null); }
public void Should_Add_Watcher() { redmineManager.AddWatcher(44, 8); Assert.Inconclusive(); }