public void Setup() { this.stServerSingleton = new StServerMockSingleton(); this.stServer = this.stServerSingleton.Instance; this.handlers = new SmartComHandlersDatabase(); this.handlers.Add <_IStClient_ConnectedEventHandler>(ConnectedHandler); this.handlers.Add <_IStClient_DisconnectedEventHandler>(DisconnectedHandler); this.binder = new SmartComBinder(this.stServer, this.handlers, new NullLogger()); this.connector = new SmartComConnector(this.stServer, this.handlers, new NullLogger()); this.subscriber = new SmartComSubscriber(this.stServer, new NullLogger()); this.subscriber.Portfolios.Add("ST88888-RF-01"); this.subscriber.Ticks.Add("RTS-6.13_FT"); this.subscriber.Quotes.Add("RTS-6.13_FT"); this.subscriber.BidsAndAsks.Add("RTS-6.13_FT"); this.trader = new SmartComAdapter(this.connector, this.handlers, this.binder, this.subscriber, this.stServerSingleton, new NullLogger(), 1); Assert.AreEqual(0, this.subscriber.SubscriptionsCounter); }
public void Setup() { this.rawData = new RawTradingDataContext(); this.singleton = new StServerMockSingleton(); this.stServer = (StServerClassMock)this.singleton.Instance; this.manager = new SmartComOrderManager(this.singleton, this.rawData, new NullLogger()); }
public void Setup() { this.singleton = new StServerMockSingleton(); this.stServer = (StServerClassMock)this.singleton.Instance; }
public void Setup() { this.factory = new StServerMockSingleton(); }