Ejemplo n.º 1
0
        public void RemoveGroup(bool globalGroup)
        {
            var req           = GroupRequestFactory.CreateAddGroupRequest(_testGroupName, globalGroup);
            var groupResponse = RequestHandler.Execute <ObjectResponse <NamedObject> >(req);

            Assert.True(groupResponse.Success, "Group was not even added");
            req = GroupRequestFactory.CreateDeleteGroupRequest(groupResponse.Data.Id);
            var response = RequestHandler.Execute <DataspaceResponse>(req);

            Assert.True(response.Success, response.Message);
        }
Ejemplo n.º 2
0
        protected ObjectResponse <NamedObject> DoAddGroup(string name, bool globalGroup, bool autoRemove)
        {
            var req      = GroupRequestFactory.CreateAddGroupRequest(name, globalGroup);
            var response = RequestHandler.Execute <ObjectResponse <NamedObject> >(req);

            if (autoRemove)
            {
                _autoRemoveGroups.Add(response.Data.Id); //for cleanup
            }
            return(response);
        }