Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }