public VoucherOperationsService(ICustomerProfileService customerProfileService, ICurrencyConvertorService currencyConvertorService, ILogFactory logFactory) { _customerProfileService = customerProfileService ?? throw new ArgumentNullException(nameof(customerProfileService)); _currencyConvertorService = currencyConvertorService ?? throw new ArgumentNullException(nameof(currencyConvertorService)); _log = logFactory.CreateLog(this); }
public CustomerProfileService( ICustomerProfileRepository customerProfileRepository, ILogFactory logFactory, ICurrencyConvertorService currencyConvertorService) { _customerProfileRepository = customerProfileRepository ?? throw new ArgumentNullException(nameof(customerProfileRepository)); _currencyConvertorService = currencyConvertorService ?? throw new ArgumentNullException(nameof(currencyConvertorService)); _log = logFactory.CreateLog(this); }
public IndexModel(ICurrencyConvertorService currencyConvertorService) { _currencyConvertorService = currencyConvertorService; }