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); }
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); }
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); }
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; }