Example #1
0
 public void Setup()
 {
     this._configuration           = TestHelpers.Config();
     this._logger                  = A.Fake <ILogger <OrdersRepository> >();
     this._opCtx                   = A.Fake <ISystemProcessOperationContext>();
     this._marketRepository        = A.Fake <IReddeerMarketRepository>();
     this._orderBrokerRepository   = A.Fake <IOrderBrokerRepository>();
     this._connectionStringFactory = A.Fake <IConnectionStringFactory>();
 }
 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));
 }