MsgType Field
Inheritance: StringField
Esempio n. 1
0
 public void TCRMsgTypeGetsSetTest()
 {
     QuickFix.FIX44.TradeCaptureReport tcr = new QuickFix.FIX44.TradeCaptureReport();
     Assert.That(tcr.Header.IsSetField(QuickFix.Fields.Tags.MsgType), Is.True);
     MsgType msgType = new MsgType();
     tcr.Header.GetField(msgType);
     Assert.That(msgType.getValue(), Is.EqualTo("AE"));
 }
Esempio n. 2
0
 public void TCRReqFieldsCTORTest()
 {
     QuickFix.FIX44.TradeCaptureReport tcr = new QuickFix.FIX44.TradeCaptureReport(
         new TradeReportID("dude1"),
         new PreviouslyReported(true),
         new Symbol("AAPL"),
         new LastQty(new Decimal(100.1)),
         new LastPx(new Decimal(100.2)),
         new TradeDate("2010-12-12"),
         new TransactTime(new DateTime(2010, 12, 15, 10, 55, 32, 455)));
     Assert.That(tcr.Symbol.getValue(), Is.EqualTo("AAPL"));
     Assert.That(tcr.TradeReportID.getValue(), Is.EqualTo("dude1"));
     MsgType msgType = new MsgType();
     tcr.Header.GetField(msgType);
     Assert.That(msgType.getValue(), Is.EqualTo("AE"));
 }
Esempio n. 3
0
 internal MessageBuilder(
     string msgStr,
     string defaultApplVerId,
     bool validateLengthAndChecksum,
     DataDictionary.DataDictionary sessionDD,
     DataDictionary.DataDictionary appDD,
     IMessageFactory msgFactory)
 {
     _msgStr                    = msgStr;
     _defaultApplVerId          = new ApplVerID(defaultApplVerId);
     _validateLengthAndChecksum = validateLengthAndChecksum;
     _sessionDD                 = sessionDD;
     _appDD       = appDD;
     _msgFactory  = msgFactory;
     _msgType     = Message.IdentifyType(_msgStr);
     _beginString = Message.ExtractBeginString(_msgStr);
 }