public void TearDown() { _tickPriceHistoryServiceClientFactory = null; _refinitivTickPriceHistoryApiConfig = null; _requestContext = null; _logger = null; }
public void Setup() { _tickPriceHistoryServiceClientFactory = A.Fake <ITickPriceHistoryServiceClientFactory>(); _refinitivTickPriceHistoryApiConfig = A.Fake <IRefinitivTickPriceHistoryApiConfig>(); _requestContext = A.Fake <ISystemProcessOperationThirdPartyDataRequestContext>(); _logger = A.Fake <ILogger <IRefinitivDataSynchroniser> >(); }
public RefinitivDataSynchroniser(ITickPriceHistoryServiceClientFactory tickPriceHistoryServiceClientFactory, IRefinitivTickPriceHistoryApiConfig refinitivTickPriceHistoryApiConfig, ILogger <IRefinitivDataSynchroniser> logger) { this._tickPriceHistoryServiceClientFactory = tickPriceHistoryServiceClientFactory ?? throw new ArgumentNullException(nameof(tickPriceHistoryServiceClientFactory)); this._refinitivTickPriceHistoryApiConfig = refinitivTickPriceHistoryApiConfig ?? throw new ArgumentNullException(nameof(refinitivTickPriceHistoryApiConfig)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
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)); }
public RefinitivTickPriceHistoryApi( ITickPriceHistoryServiceClientFactory tickPriceHistoryServiceClientFactory) { this.tickPriceHistoryServiceClientFactory = tickPriceHistoryServiceClientFactory; }