public bool PublishSymbolTicksNoProcessorsGetLatestTest(string providerid, string symbol, string name, double value)
        {
            _tick = new SecurityTicks(symbol);

            // Simulatation - Arrived in the processing Q while processing a Security.
            var sec1 = new Security("Aggregator", "AAA", 6.32D);
            _tick.OnDataReceived(sec1);
            var sec2 = new Security("Aggregator", "BBB", 6.22D);
            _tick.OnDataReceived(sec2);
            var sec3 = new Security("Aggregator", "CCC", 6.12D);
            _tick.OnDataReceived(sec3);

            // We want the input security to have the latest timestamp.
            Thread.Sleep(1000);
            // Now add our provided security
            var sec = new Security(providerid, name, value);
            _tick.OnDataReceived(sec);

            _tick.CompleteAdding();
            _tick.PublishSymbolTicks(
                PublishSymbolTicksTestPublisher);
            Assert.IsTrue(!_tick.SymbolTicks.Any());
            return _published.Equals(sec);
        }
 public void PublishSymbolTicksNullPublisher(string symbol)
 {
     var tick = new SecurityTicks(symbol);
     tick.PublishSymbolTicks(null);
 }