public void CreateAndDelete() { int id = RunTest(GroupFolder.Create(Api, "test")); if (!RunTest(Group.List(Api, new ListRequest() { search = "test" })).List.Any(n => n == "test")) { RunTest(Group.Create(Api, "test")); } GroupFolder g = RunTest(GroupFolder.Get(Api, id)); RunTest(g.AddGroup(Api, "test")); RunTest(g.SetPermissions(Api, "test", GroupFolder.Permissions.All)); RunTest(g.SetQuota(Api, 1000000000)); RunTest(GroupFolder.Get(Api, g.id)); RunTest(g.SetQuota(Api, -3)); RunTest(GroupFolder.Get(Api, g.id)); RunTest(GroupFolder.Delete(Api, g.id)); }
public void GetGroupFolder() { RunTest(GroupFolder.Get(Api, 1)); }