public void TestQueryOrder() { var queryOrderCallback = new DataListCallback <OrderInfo>((DataListResult <OrderInfo> result) => { if (result.IsSuccess) { foreach (OrderInfo orderInfo in result.Result) { Console.WriteLine("报单查询成功, OrderSysID: {0},OrderRef: {1},ExchangeID: {2}", orderInfo.OrderSysID, orderInfo.OrderRef, orderInfo.ExchangeID); } } Assert.IsTrue(result.IsSuccess); }); _adapter.QueryOrder(queryOrderCallback); Thread.Sleep(100); }
public void TestQueryOrder() { var queryOrderCallback = new DataListCallback <OrderInfo>((DataListResult <OrderInfo> result) => { if (result.IsSuccess) { Console.WriteLine("报单查询成功, 记录条数:{0}", result.Result.Count); } else { Console.WriteLine("报单查询失败:{0}", result.Error); } Assert.IsTrue(result.IsSuccess); }); _adapter.QueryOrder(queryOrderCallback); Thread.Sleep(100); }