Exemple #1
0
 public void TestQueryTransferSerial()
 {
     _api.OnRspQryTransferSerial += new TradeApi.RspQryTransferSerial((ref CThostFtdcTransferSerialField pTransferSerial,
                                                                       ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("转帐流水查询成功, PlateSerial: {0}", pTransferSerial.PlateSerial);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryTransferSerial(1, "101");
     Thread.Sleep(200);
 }