public ExchangeRateService( IForeignExchangeRatesService foreignExchangeRatesService, IDomainNotification domainNotification, IOptions <ExchangeRatePerSegment> exchangeRatePerSegment) { _foreignExchangeRatesService = foreignExchangeRatesService; _domainNotification = domainNotification; _exchangeRatePerSegment = exchangeRatePerSegment.Value; }
public GetForeignExchangeRateHandler( IUnitOfWork unitOfWork, IPublicationDateService publicationDateService, IForeignExchangeRatesService foreignExchangeRatesService, ICachingService <IList <ForeignExchangeRateModel> > cachingService ) { _unitOfWork = unitOfWork; _publicationDateService = publicationDateService; _foreignExchangeRatesService = foreignExchangeRatesService; _cachingService = cachingService; }