public CurrencyAdaptorLogging( ILog log, ICurrencyAdaptor decorated) { this.log = CtorGuard.NotNull(log, nameof(log)); this.decorated = CtorGuard.NotNull(decorated, nameof(decorated)); }
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)); }
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)); }