public void AddTradeTest() { var trade = new Trade(m_Instrument, 100UL, 100.10M); m_Trades.AddTrade(trade); Assert.That(((Trades.InMemoryTradeProcessor)m_Trades.TradeProcessingStrategy).Trades[0], Is.EqualTo(trade)); }
public void AddTrade(Trade trade) { if (trade == null) throw new ArgumentNullException("trade"); if (trade.Instrument != Instrument) throw new TradeIsNotForThisInstrumentException(); lock (m_Locker) TradeProcessingStrategy.Add(trade); }
public override void Add(Trade trade) { lock (m_Locker) m_Trades.Add(trade); }
public abstract void Add(Trade trade);
public override void Add(Trade trade) { Writer.Write(trade.ToString()); }