public void InitialMapping() { var provider = new MappingEventProvider(); Assert.AreEqual("TFCFA", _config.MappedSymbol); provider.Initialize(_config, null, MapFile.Read("TFCFA", Market.USA), new DateTime(2006, 1, 1)); Assert.AreEqual("NWSA", _config.MappedSymbol); }
public void InitialMapping() { var provider = new MappingEventProvider(); Assert.AreEqual("TFCFA", _config.MappedSymbol); provider.Initialize(_config, null, TestGlobals.MapFileProvider, new DateTime(2006, 1, 1)); Assert.AreEqual("NWSA", _config.MappedSymbol); }
public void MappingEvent() { var provider = new MappingEventProvider(); provider.Initialize(_config, null, MapFile.Read("FOXA", Market.USA), new DateTime(2006, 1, 1)); Assert.AreEqual("NWSA", _config.MappedSymbol); var symbolEvent = (SymbolChangedEvent)provider .GetEvents(new NewTradableDateEventArgs( new DateTime(2013, 6, 29), null, _config.Symbol)).Single(); Assert.AreEqual("FOXA", symbolEvent.NewSymbol); Assert.AreEqual("NWSA", symbolEvent.OldSymbol); Assert.AreEqual("FOXA", _config.MappedSymbol); }