public CardPaymentFactory( IRepository<Account> accounts, IRepository<UserPaymentProfile> paymentProfiles, IRepository<Currency> currencies, IQueryRepository<CorrespondentAccount> correspondentAccounts, TransactionReferenceBook transactionReferenceBook, MoneyConverter moneyConverter, PaymentFormFactory paymentFormFactory) { Argument.NotNull(accounts, "accounts"); Argument.NotNull(paymentProfiles, "paymentProfiles"); Argument.NotNull(currencies, "currencies"); Argument.NotNull(correspondentAccounts, "correspondentAccounts"); Argument.NotNull(transactionReferenceBook, "transactionReferenceBook"); Argument.NotNull(moneyConverter, "moneyConverter"); Argument.NotNull(paymentFormFactory, "paymentFormFactory"); _settings = new BankSettings(); _currencies = currencies; _correspondentAccounts = correspondentAccounts; _paymentProfiles = paymentProfiles; _accounts = accounts; _transactionReferenceBook = transactionReferenceBook; _moneyConverter = moneyConverter; _paymentFormFactory = paymentFormFactory; }
internal BaseOperationProcessor(BaseOperationProcessorDependencies baseDependencies) { Argument.NotNull(baseDependencies, "baseDependencies"); baseDependencies.EnsureIsResolved(); Logger = LogManager.GetLogger(GetType().FullName); MoneyConverter = baseDependencies.MoneyConverter; TransactionRepository = baseDependencies.TransactionRepository; TransactionReferenceBook = baseDependencies.TransactionReferenceBook; Settings = new BankSettings(); }