コード例 #1
0
        public void RedmineUser_ShouldAddUserToGroup()
        {
            redmineManager.AddUser(groupId, int.Parse(userId));

            User user = redmineManager.GetObject <User>(userId.ToString(), new NameValueCollection {
                { "include", "groups" }
            });

            Assert.IsTrue(user.Groups.Find(g => g.Id == groupId) != null);
        }