public UnitOfWork(BankAPIDbContext db) { _db = db; Account = new AccountRepository(_db); Client = new ClientRepository(_db); Branch = new BranchRepository(_db); }
public ClientRepository(BankAPIDbContext db) : base(db) { _db = db; }
public AccountRepository(BankAPIDbContext db) : base(db) { _db = db; }
public CreateAccountHandler(BankAPIDbContext dbContext, IMapper mapper, IMessagePublisher messagePublisher, IUnitOfWork unitOfWork) { _mapper = mapper; _messagePublisher = messagePublisher; _unitOfWork = unitOfWork; }
public BranchRepository(BankAPIDbContext db) : base(db) { _db = db; }