Exemplo n.º 1
0
 public void Setup()
 {
     _configuration       = TestHelpers.Config();
     _logger              = A.Fake <ILogger <ReddeerMarketRepository> >();
     _opCtx               = A.Fake <ISystemProcessOperationContext>();
     _cfiInstrumentMapper = new CfiInstrumentTypeMapper();
 }
 public EnrichmentService(
     IReddeerMarketRepository marketRepository,
     IOrderBrokerRepository orderBrokerRepository,
     IEnrichmentApi api,
     IBrokerApi brokerApi,
     ITickPriceHistoryServiceClientFactory tickPriceHistoryServiceClientFactory,
     ICfiInstrumentTypeMapper cfiInstrumentTypeMapper,
     ILogger <EnrichmentService> logger)
 {
     this._marketRepository      = marketRepository ?? throw new ArgumentNullException(nameof(marketRepository));
     this._orderBrokerRepository = orderBrokerRepository ?? throw new ArgumentNullException(nameof(orderBrokerRepository));
     this._api       = api ?? throw new ArgumentNullException(nameof(api));
     this._brokerApi = brokerApi ?? throw new ArgumentNullException(nameof(brokerApi));
     this._tickPriceHistoryServiceClientFactory = tickPriceHistoryServiceClientFactory ?? throw new ArgumentNullException(nameof(tickPriceHistoryServiceClientFactory));
     this._cfiInstrumentTypeMapper = cfiInstrumentTypeMapper ?? throw new ArgumentNullException(nameof(cfiInstrumentTypeMapper));
     this._logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }