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