internal Streams(IStreamingManager streamingManager, IPriceStreamFactory priceStreamFactory, INewsStreamFactory newsStreamFactory, IOrderStreamFactory orderStreamFactory) { _streamingManager = streamingManager; _priceStreamFactory = priceStreamFactory; _newsStreamFactory = newsStreamFactory; _orderStreamFactory = orderStreamFactory; }
public void SetUp() { _mockStreamingManager = MockRepository.GenerateMock<IStreamingManager>(); _mockPriceStreamFactory = MockRepository.GenerateMock<IPriceStreamFactory>(); _mockNewsStreamFactory = MockRepository.GenerateMock<INewsStreamFactory>(); _mockOrderStreamFactory = MockRepository.GenerateMock<IOrderStreamFactory>(); _streams = new Streams(_mockStreamingManager, _mockPriceStreamFactory, _mockNewsStreamFactory, _mockOrderStreamFactory); _mockLsCityindexStreamingConnection = MockRepository.GenerateMock<ILsCityindexStreamingConnection>(); _mockLStreamingClientAccountConnection = MockRepository.GenerateMock<ILsStreamingClientAccountConnection>(); _mockApiConnection = MockRepository.GenerateMock<IApiConnection>(); _mockLightStreamerConnectionManager = MockRepository.GenerateMock<LightStreamerConnectionManager>(_mockApiConnection); }
public void SetUp() { _mockStreamingManager = MockRepository.GenerateMock <IStreamingManager>(); _mockPriceStreamFactory = MockRepository.GenerateMock <IPriceStreamFactory>(); _mockNewsStreamFactory = MockRepository.GenerateMock <INewsStreamFactory>(); _mockOrderStreamFactory = MockRepository.GenerateMock <IOrderStreamFactory>(); _streams = new Streams(_mockStreamingManager, _mockPriceStreamFactory, _mockNewsStreamFactory, _mockOrderStreamFactory); _mockLsCityindexStreamingConnection = MockRepository.GenerateMock <ILsCityindexStreamingConnection>(); _mockLStreamingClientAccountConnection = MockRepository.GenerateMock <ILsStreamingClientAccountConnection>(); _mockApiConnection = MockRepository.GenerateMock <IApiConnection>(); _mockLightStreamerConnectionManager = MockRepository.GenerateMock <LightStreamerConnectionManager>(_mockApiConnection); }