private void InitServiceClients() { // the Ontology info client. RestClientConfig orcc = new RestClientConfig("http", this.oServerBox.Text, int.Parse(this.oPortBox.Text)); this.oisc = new OntologyInfoServiceClient(orcc); // the Nodegroup client RestClientConfig ngrcc = new RestClientConfig("http", this.ngServerBox.Text, int.Parse(this.ngPortBox.Text)); this.ngc = new NodeGroupClient(ngrcc); // the nodegroup execution client NodeGroupExecutionClientConfig ngercc = new NodeGroupExecutionClientConfig("http", eServerBox.Text, int.Parse(ePortBox.Text)); this.ngec = new NodeGroupExecutionClient(ngercc); }
public void NodeGroupDeleteGeneration() { String selectStatement = ""; NodeGroup ng = new NodeGroup(); Debug.WriteLine(jsonContent); ng.AddJsonEncodedNodeGroup((JsonObject.Parse(jsonContent)).GetNamedObject("sNodeGroup")); RestClientConfig necc = new RestClientConfig(protocol, serverAddress, nodeGroupServicePort); NodeGroupClient nodeGroupClient = new NodeGroupClient(necc); selectStatement = nodeGroupClient.ExecuteGetDelete(ng).Result; Debug.WriteLine("the returned sparql delete was: "); Debug.WriteLine(selectStatement); Assert.IsTrue(selectStatement.Length > 0); }