public FeedProcessorTests() { _mockLogger = Mock.Of <ILogger <FeedProcessor> >(MockBehavior.Strict); _mockFeedProcessorConfiguration = Mock.Of <Configuration.IFeedProcessorConfiguration>(MockBehavior.Strict); _mockFeedReader = Mock.Of <Interfaces.IFcsFeedReaderService>(MockBehavior.Strict); _mockQueuePopulator = Mock.Of <Interfaces.IContractEventSessionQueuePopulator>(MockBehavior.Strict); _mockCollector = Mock.Of <IAsyncCollector <Message> >(MockBehavior.Strict); }
/// <summary> /// Initializes a new instance of the <see cref="FeedProcessor" /> class. /// </summary> /// <param name="fcsFeedReader">The FCS feed reader.</param> /// <param name="queuePopulator">The queue populator.</param> /// <param name="configuration">The configuration.</param> /// <param name="logger">The logger.</param> public FeedProcessor( IFcsFeedReaderService fcsFeedReader, IContractEventSessionQueuePopulator queuePopulator, IFeedProcessorConfiguration configuration, ILogger <FeedProcessor> logger) { _fcsFeedReader = fcsFeedReader; _queuePopulator = queuePopulator; _configuration = configuration; _logger = logger; }