本文整理匯總了C#中Wombat.MamaMsg.addString方法的典型用法代碼示例。如果您正苦於以下問題:C# MamaMsg.addString方法的具體用法?C# MamaMsg.addString怎麽用?C# MamaMsg.addString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Wombat.MamaMsg
的用法示例。
在下文中一共展示了MamaMsg.addString方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: TestCorrTradeId
public void TestCorrTradeId()
{
mMsg = new MamaMsg();
addMamaHeaderFields(mMsg,
(byte)mamaMsgType.MAMA_MSG_TYPE_CORRECTION,
(byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
(uint)1);
mMsg.addString("wCorrTradeId", 4060, "B");
ticker.callMamdaOnMsg(mSubscription, mMsg);
Assert.AreEqual("B", ticker.myCorrTradeId);
}
示例2: TestOrigTradeid
public void TestOrigTradeid()
{
mMsg = new MamaMsg();
addMamaHeaderFields(mMsg,
(byte)mamaMsgType.MAMA_MSG_TYPE_CANCEL,
(byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
(uint)1);
mMsg.addString("wOrigTradeId", 1096, "C");
ticker.callMamdaOnMsg(mSubscription, mMsg);
Assert.AreEqual("C", ticker.myOrigTradeId);
}
示例3: testTradeId
public void testTradeId()
{
mMsg = new MamaMsg();
addMamaHeaderFields(mMsg,
(byte)mamaMsgType.MAMA_MSG_TYPE_TRADE,
(byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
(uint)1);
mMsg.addString("wTradeId", 477, "A");
ticker.callMamdaOnMsg(mSubscription, mMsg);
Assert.AreEqual("A", ticker.myTradeId);
}
示例4: testTradeSideString
public void testTradeSideString()
{
mMsg = new MamaMsg();
addMamaHeaderFields(
mMsg,
(byte)mamaMsgType.MAMA_MSG_TYPE_TRADE,
(byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
1);
mMsg.addString("wTradeSide", 1161, "1");
callMamdaOnMsg(mSubscription, mMsg);
Assert.AreEqual("1", mTradeListener.getSide());
Assert.AreEqual(MamdaFieldState.MODIFIED, mTradeListener.getSideFieldState());
mMsg = null;
}