public void HistoryDataProvider_send_tick_request_test() { IHistoryDataRequest tickRequest = new TickHistoryDataRequest("RTS-6.14", 10, DateTime.Now); this.historyDataProvider.Send(tickRequest); Assert.AreEqual(10, this.tradingData.Get <IEnumerable <Tick> >().Where(t => t.Symbol == "RTS-6.14").Count()); }
public void TickHistoryDataRequest_test() { DateTime fromDate = new DateTime(2014, 1, 1); IHistoryDataRequest request = new TickHistoryDataRequest("RTS-6.14", 100, fromDate); Assert.AreEqual("RTS-6.14", request.Symbol); Assert.AreEqual(0, request.Interval); Assert.AreEqual(100, request.Quantity); Assert.AreEqual(fromDate, request.FromDate); }