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