public UnitOfWork(AccountManagerDbContext pContext) { if (pContext == null) { throw new ArgumentNullException(nameof(pContext)); } this.iDbContext = pContext; this.ClientRepository = new ClientRepository(this.iDbContext); this.AccountRepository = new AccountRepository(this.iDbContext); }
public UnitOfWork(AccountManagerDbContext pContext) { iDbContext = pContext; AccountRepository = new AccountRepository(pContext); ClientRepository = new ClientRepository(pContext); }