public void Setup()
 {
     _tickPriceHistoryServiceClientFactory = A.Fake <ITickPriceHistoryServiceClientFactory>();
     _refinitivTickPriceHistoryApiConfig   = A.Fake <IRefinitivTickPriceHistoryApiConfig>();
     _requestContext = A.Fake <ISystemProcessOperationThirdPartyDataRequestContext>();
     _logger         = A.Fake <ILogger <IRefinitivDataSynchroniser> >();
 }
 public void TearDown()
 {
     _tickPriceHistoryServiceClientFactory = null;
     _refinitivTickPriceHistoryApiConfig   = null;
     _requestContext = null;
     _logger         = null;
 }
Esempio n. 3
0
 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 TickPriceHistoryServiceClientFactory(
     IRefinitivTickPriceHistoryApiConfig refinitivTickPriceHistoryApiConfig,
     IConfiguration configuration,
     IJwtTokenService jwtTokenService)
 {
     this.refinitivTickPriceHistoryApiConfig = refinitivTickPriceHistoryApiConfig;
     this.configuration   = configuration;
     this.jwtTokenService = jwtTokenService;
 }