Example #1
0
        private void DeleteGroup(int id)
        {
            IDeleteGroupApi api2           = new DeleteGroupApi(context);
            var             jsonContainer2 = new DeleteGroupJsonDataContainer();

            jsonContainer2.Group = new DeleteGroupJsonDataContainer.GroupWithId {
                Id = id
            };
            api2.JsonData = jsonContainer2;
            var response2 = api2.Execute();
        }
Example #2
0
        public void TestDeleteGroupApi()
        {
            Assert.IsFalse(GroupExists("test1"));
            int id = CreateGroup("test1");

            IDeleteGroupApi api2           = new DeleteGroupApi(context);
            var             jsonContainer2 = new DeleteGroupJsonDataContainer();

            jsonContainer2.Group = new DeleteGroupJsonDataContainer.GroupWithId {
                Id = id
            };
            api2.JsonData = jsonContainer2;
            var response2 = api2.Execute();

            Assert.IsFalse(GroupExists(id));
        }