public GangsterBankUnitOfWork(
            IRepository<Account> accountsRepository, 
            IRepository<Address> addressesRepository, 
            ICitiesRepository citiesRepository, 
            IClientsRepository clientsRepository, 
            IContactsRepository contactsRepository, 
            ICountriesRepository countryRepository, 
            IEmploymentDataRepository employmentDataRepository, 
            ILoanProductsRepository loanProductsRepository, 
            IObligationRepository obligationsRepository, 
            IPassportDataRepository passportDataRepository, 
            IPropertyRepository propertiesRepository,
            IPersonalDetailsRepository personalDetailsRepository,
            ILoanRequestsRepository loanRequestsRepository,
            IRolesRepository roles,
            IRepository<LoanProductRequirements> loanProductsRequirmentsRepository,
            IRepository<TakenLoan> takenLoansRepository,
            IRepository<Payment> paymentsRepository,
            ILoanPaymentsRepository loanPaymentsRepository)
        {
            Contract.Requires<ArgumentNullException>(accountsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(addressesRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(citiesRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(clientsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(contactsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(countryRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(employmentDataRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(loanProductsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(obligationsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(passportDataRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(propertiesRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(personalDetailsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(loanRequestsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(roles.IsNotNull());
            Contract.Requires<ArgumentNullException>(loanProductsRequirmentsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(takenLoansRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(paymentsRepository.IsNotNull());
            Contract.Requires<ArgumentNullException>(loanPaymentsRepository.IsNotNull());

            this.AccountsRepository = accountsRepository;
            this.AddressesRepository = addressesRepository;
            this.CitiesRepository = citiesRepository;
            this.ClientsRepository = clientsRepository;
            this.ContactsRepository = contactsRepository;
            this.CountryRepository = countryRepository;
            this.EmploymentDataRepository = employmentDataRepository;
            this.LoanProductsRepository = loanProductsRepository;
            this.ObligationsRepository = obligationsRepository;
            this.PassportDataRepository = passportDataRepository;
            this.PropertiesRepository = propertiesRepository;
            this.PersonalDetailsRepository = personalDetailsRepository;
            this.LoanRequestsRepository = loanRequestsRepository;
            this.RolesRepository = roles;
            this.LoanProductsRequirmentsRepository = loanProductsRequirmentsRepository;
            this.TakenLoansRepository = takenLoansRepository;
            this.PaymentsRepository = paymentsRepository;
            this.LoanPaymentsRepository = loanPaymentsRepository;
        }
Esempio n. 2
0
        public GangsterBankUnitOfWork(
            IRepository <Account> accountsRepository,
            IRepository <Address> addressesRepository,
            ICitiesRepository citiesRepository,
            IClientsRepository clientsRepository,
            IContactsRepository contactsRepository,
            ICountriesRepository countryRepository,
            IEmploymentDataRepository employmentDataRepository,
            ILoanProductsRepository loanProductsRepository,
            IObligationRepository obligationsRepository,
            IPassportDataRepository passportDataRepository,
            IPropertyRepository propertiesRepository,
            IPersonalDetailsRepository personalDetailsRepository,
            ILoanRequestsRepository loanRequestsRepository,
            IRolesRepository roles,
            IRepository <LoanProductRequirements> loanProductsRequirmentsRepository,
            IRepository <TakenLoan> takenLoansRepository,
            IRepository <Payment> paymentsRepository,
            ILoanPaymentsRepository loanPaymentsRepository)
        {
            Contract.Requires <ArgumentNullException>(accountsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(addressesRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(citiesRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(clientsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(contactsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(countryRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(employmentDataRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(loanProductsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(obligationsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(passportDataRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(propertiesRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(personalDetailsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(loanRequestsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(roles.IsNotNull());
            Contract.Requires <ArgumentNullException>(loanProductsRequirmentsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(takenLoansRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(paymentsRepository.IsNotNull());
            Contract.Requires <ArgumentNullException>(loanPaymentsRepository.IsNotNull());

            this.AccountsRepository                = accountsRepository;
            this.AddressesRepository               = addressesRepository;
            this.CitiesRepository                  = citiesRepository;
            this.ClientsRepository                 = clientsRepository;
            this.ContactsRepository                = contactsRepository;
            this.CountryRepository                 = countryRepository;
            this.EmploymentDataRepository          = employmentDataRepository;
            this.LoanProductsRepository            = loanProductsRepository;
            this.ObligationsRepository             = obligationsRepository;
            this.PassportDataRepository            = passportDataRepository;
            this.PropertiesRepository              = propertiesRepository;
            this.PersonalDetailsRepository         = personalDetailsRepository;
            this.LoanRequestsRepository            = loanRequestsRepository;
            this.RolesRepository                   = roles;
            this.LoanProductsRequirmentsRepository = loanProductsRequirmentsRepository;
            this.TakenLoansRepository              = takenLoansRepository;
            this.PaymentsRepository                = paymentsRepository;
            this.LoanPaymentsRepository            = loanPaymentsRepository;
        }