コード例 #1
0
ファイル: ExchangeRateService.cs プロジェクト: al-main/vabank
 public ExchangeRateService(BaseServiceDependencies dependencies,
     ExchangeRateServiceDependencies exchangeRateServiceDependencies)
     : base(dependencies)
 {
     exchangeRateServiceDependencies.EnsureIsResolved();
     _deps = exchangeRateServiceDependencies;
     _settings = new ExchangeRateSettings();
 }
コード例 #2
0
        public ExchangeRateCalculator(IRepository<Currency> currencyRepository, 
            NationalExchangeRateRoundingSettings roundingSettings)
        {
            Argument.NotNull(currencyRepository, "currencyRepository");
            Argument.NotNull(roundingSettings, "roundingSettings");

            _roundingSettings = roundingSettings;
            _currencyRepository = currencyRepository;
            _settings = new ExchangeRateSettings();
        }
コード例 #3
0
        public ExchangeRateCalculator(IRepository <Currency> currencyRepository,
                                      NationalExchangeRateRoundingSettings roundingSettings)
        {
            Argument.NotNull(currencyRepository, "currencyRepository");
            Argument.NotNull(roundingSettings, "roundingSettings");

            _roundingSettings   = roundingSettings;
            _currencyRepository = currencyRepository;
            _settings           = new ExchangeRateSettings();
        }