コード例 #1
0
 internal Streams(IStreamingManager streamingManager, IPriceStreamFactory priceStreamFactory, INewsStreamFactory newsStreamFactory, IOrderStreamFactory orderStreamFactory)
 {
     _streamingManager   = streamingManager;
     _priceStreamFactory = priceStreamFactory;
     _newsStreamFactory  = newsStreamFactory;
     _orderStreamFactory = orderStreamFactory;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }