public ActionResult UserGroupsGroupMove(long fromGroupId, long toGroupId)
        {
            if (this.CurrentUser.IsGroupOwner)
            {
                this.ServiceResponse = groupsService.GroupMove(this.CurrentUser, fromGroupId, toGroupId);
            }

            return(UserGroupsList(null));
        }
Beispiel #2
0
        public void TestUserGroupServices_Move_Group()
        {
            var sa = GetUserSessionModel("*****@*****.**");

            var grp = this.TContext.Groups.Where(g => g.Name == "Test Dallas").FirstOrDefault();

            var newParentGroup = this.TContext.Groups.Where(g => g.Name == "Test Florida").FirstOrDefault();

            var result1 = service.GroupMove(sa, grp.GroupId, newParentGroup.GroupId);

            this.TContext.ObjectContext.Refresh(RefreshMode.StoreWins, grp);

            Assert.IsTrue(grp.ParentGroupId == newParentGroup.GroupId);
        }