示例#1
0
 public CurrencyAdaptorLogging(
     ILog log,
     ICurrencyAdaptor decorated)
 {
     this.log       = CtorGuard.NotNull(log, nameof(log));
     this.decorated = CtorGuard.NotNull(decorated, nameof(decorated));
 }
示例#2
0
 public CurrencyNormalization(
     ICurrencyAdaptor currencyAdaptor,
     IAmountAdditionMethod decorated)
 {
     this.currencyAdaptor = CtorGuard.NotNull(currencyAdaptor, nameof(currencyAdaptor));
     this.decorated       = CtorGuard.NotNull(decorated, nameof(decorated));
 }
 public DemoAccountBalanceRetrievalMethod(IEnumerable <Amount> transactions, ICurrencyAdaptor currencyAdaptor)
 {
     this.transactions    = CtorGuard.NotNull(transactions, nameof(transactions));
     this.currencyAdaptor = CtorGuard.NotNull(currencyAdaptor, nameof(currencyAdaptor));
 }
示例#4
0
 public DemoAccountBalanceRetrievalMethod(IEnumerable <Amount> transactions, ICurrencyAdaptor currencyAdaptor, Currency defaultCurrency)
 {
     this.transactions    = transactions ?? throw new ArgumentNullException(nameof(transactions));
     this.currencyAdaptor = currencyAdaptor ?? throw new ArgumentNullException(nameof(currencyAdaptor));
     this.defaultCurrency = defaultCurrency ?? throw new ArgumentNullException(nameof(defaultCurrency));
 }