public static void createOrganization()
 {
     OrganizationJSON json = new OrganizationJSON(999, "TestName");
     Organization newOrg = new Organization(TestGlobals.adminServer, json);
     Test mTest = new Test(newOrg);
     Console.WriteLine("Creating client");
     HttpClient client = new HttpClient();
     client.DefaultRequestHeaders.Authorization = AuthenticateTest.getSessionToken();
     Console.WriteLine("Creating org");
     AsyncContext.Run(async () => await new HTTPSCalls().runTest(mTest, HTTPOperation.POST, client));
     Console.WriteLine(HTTPSCalls.result.Value);
     TestGlobals.orgIdCreated = HTTPSCalls.result.Value.Substring(9, HTTPSCalls.result.Value.Length - 10);
 }
 public Organization(Uri server, OrganizationJSON json)
 {
     opHost = server;
     hOp = HTTPOperation.POST;
     this.json = json;
 }
 public Organization(Uri server, OrganizationJSON json)
 {
     opHost    = server;
     hOp       = HTTPOperation.POST;
     this.json = json;
 }