public AccountModule(IRepository <Account> accountRepository, BankCardModule bankCardModule, TransactionModule transactionModule, ClientModule clientModule)
 {
     this.accountRepository = accountRepository;
     this.bankCardModule    = bankCardModule;
     this.transactionModule = transactionModule;
     this.clientModule      = clientModule;
 }
 public AccountModule(IRepository<Account> accountRepository, BankCardModule bankCardModule, TransactionModule transactionModule, ClientModule clientModule)
 {
     this.accountRepository = accountRepository;
     this.bankCardModule = bankCardModule;
     this.transactionModule = transactionModule;
     this.clientModule = clientModule;
 }
        public BankCardController()
        {
            unitOfWork = new InMemoryUnitOfWork(MvcApplication.DataStore);
            var accountRepository = unitOfWork.GetRepository<Account>();
            var clientModule = new ClientModule(unitOfWork.GetRepository<Client>());
            var transactionModule = new TransactionModule(unitOfWork.GetRepository<Transaction>());

            bankCardModule = new BankCardModule(unitOfWork.GetRepository<BankCard>());
            accountModule = new AccountModule(accountRepository, bankCardModule, transactionModule, clientModule);
        }
 public ClientController()
 {
     unitOfWork = new InMemoryUnitOfWork(MvcApplication.DataStore);
     clientModule = new ClientModule(unitOfWork.GetRepository<Client>());
 }