public void CrossGetAllSubAssetsTest(string marginAccount) { var result = client.CrossGetAllSubAssetsAsync(marginAccount).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); }
public void CrossGetAllSubAssetsTest(string marginAccount, string tradePartition) { var result = client.CrossGetAllSubAssetsAsync(marginAccount, tradePartition).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); if (marginAccount != null) { string type = marginAccount.ToUpper(); foreach (var d in result.data) { foreach (var item in d.list) { Assert.Equal(type, item.tradePartition); } } } Console.WriteLine("------------"); }