/// <inheritdoc /> public TestFeed(IDataRouterManager dataRouterManager, IProducersProvider producersProvider, IOddsFeedConfiguration config, ILoggerFactory loggerFactory = null, IMetricsRoot metricsRoot = null) : base(config, loggerFactory, metricsRoot) { var bookmakerDetailsProviderMock = new Mock <BookmakerDetailsProvider>("bookmakerDetailsUriFormat", new TestDataFetcher(), new Deserializer <bookmaker_details>(), new BookmakerDetailsMapperFactory()); bookmakerDetailsProviderMock.Setup(x => x.GetData(It.IsAny <string>())).Returns(TestConfigurationInternal.GetBookmakerDetails()); var defaultBookmakerDetailsProvider = bookmakerDetailsProviderMock.Object; InternalConfig = new OddsFeedConfigurationInternal(config, defaultBookmakerDetailsProvider); DataRouterManager = dataRouterManager; ProducersProvider = producersProvider; RecoveryDataPoster = new TestDataFetcher(); }
public ProducerManager(IProducersProvider producersProvider, IOddsFeedConfiguration config) { Guard.Argument(producersProvider, nameof(producersProvider)).NotNull(); Guard.Argument(config, nameof(config)).NotNull(); _producersProvider = producersProvider; LoadProducers(); if (config.DisabledProducers != null && config.DisabledProducers.Any()) { foreach (var disabledProducer in config.DisabledProducers) { DisableProducer(disabledProducer); } } _locked = false; }
public ProducerManager(IProducersProvider producersProvider, IOddsFeedConfiguration config) { Contract.Requires(producersProvider != null); Contract.Requires(config != null); _producersProvider = producersProvider; LoadProducers(); if (config.DisabledProducers != null && config.DisabledProducers.Any()) { foreach (var disabledProducer in config.DisabledProducers) { DisableProducer(disabledProducer); } } _locked = false; }
public TestProducerManager(IProducersProvider producersProvider, IOddsFeedConfiguration config) : base(producersProvider, config) { }