public void testGetTransactionByTransactionIdAsync() { XooaClient xooaClient = new XooaClient(); xooaClient.setApiToken(XooaConstants.API_TOKEN); PendingTransactionResponse ptr = xooaClient.getTransactionByTransactionIdAsync("1159c90618cc535338e8dfb39fc86800405ff9c082f7011808d4307a3104ef8d"); Assert.IsNotEmpty(ptr.getResultId()); Assert.IsNotEmpty(ptr.getResultUrl()); }
public void testGetBlockByNumberAsync() { XooaClient xooaClient = new XooaClient(); xooaClient.setApiToken(XooaConstants.API_TOKEN); PendingTransactionResponse ptr = xooaClient.getBlockByNumberAsync("10"); ptr.display(); Assert.IsNotEmpty(ptr.getResultId()); Assert.IsNotEmpty(ptr.getResultUrl()); }
public void testInvokeAsync() { string functionName = "set"; string[] args = { "args1", "350" }; XooaClient xooaClient = new XooaClient(); xooaClient.setApiToken(XooaConstants.API_TOKEN); PendingTransactionResponse pendingResponse = xooaClient.invokeAsync(functionName, args); pendingResponse.display(); Assert.IsNotEmpty(pendingResponse.getResultId()); Assert.IsNotEmpty(pendingResponse.getResultUrl()); }
public void testEnrollIdentityAsync() { XooaClient xooaClient = new XooaClient(); xooaClient.setApiToken(XooaConstants.API_TOKEN); var attrs = new List <attrs>(); attrs.Add(new attrs("sample", "value", false)); IdentityRequest request = new IdentityRequest("Kavi", "r", true, attrs); PendingTransactionResponse response = xooaClient.enrollIdentityAsync(request); response.display(); Assert.IsNotEmpty(response.getResultId()); Assert.IsNotEmpty(response.getResultUrl()); }