Ejemplo n.º 1
0
 public ProductPricingService(IUnitConverter unitConverter, IFxRateRepository fxRateRepository,
                              IProductRepository productRepository)
 {
     _unitConverter     = unitConverter;
     _fxRateRepository  = fxRateRepository;
     _productRepository = productRepository;
 }
Ejemplo n.º 2
0
 public FxRatesController(IUnitOfWork unitOfWork, IFxRateRepository fxRateRepository, ICurrencyRepository currencyRepository, IForeignExchangeRateService foreignExchangeRateService, ILogger <FxRatesController> logger, IHostingEnvironment hostingEnvironment)
 {
     _unitOfWork                 = unitOfWork;
     _fxRateRepository           = fxRateRepository;
     _currencyRepository         = currencyRepository;
     _foreignExchangeRateService = foreignExchangeRateService;
     _logger             = logger;
     _hostingEnvironment = hostingEnvironment;
 }
Ejemplo n.º 3
0
 public MyTermVisitor(IUnitConverter unitConverter, IFxRateRepository fxRateRepository)
 {
     _unitConverter    = unitConverter;
     _fxRateRepository = fxRateRepository;
 }
Ejemplo n.º 4
0
        public void OneTimeSetUp()
        {
            var priceSource = new RandomPriceSource();

            _sut = new FxRateRepository(priceSource);
        }
Ejemplo n.º 5
0
 public FxRatesCsvImporter(IFxRateRepository fxRateRepository, ICurrencyRepository currencyRepository)
 {
     _fxRateRepository   = fxRateRepository ?? throw new ArgumentNullException(nameof(fxRateRepository));
     _currencyRepository = currencyRepository ?? throw new ArgumentNullException(nameof(currencyRepository));
 }