public void RESTfulTransferTest(string currency, double amount, string type) { var result = client.TransferAsync(currency, amount, type).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); }
public void RESTfulTransferTest(string from, string to, double amount, string marginAccount) { var result = client.TransferAsync(from, to, amount, marginAccount).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.True(result.success); }