Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public void Should_Add_Watcher()
 {
     redmineManager.AddWatcher(44, 8);
     Assert.Inconclusive();
 }