public AccountsController( IDeposit deposit, IWithdraw withdraw, IClose close, IAccountsQueries accountsQueries) { if (deposit == null) { throw new ArgumentNullException(nameof(deposit)); } if (withdraw == null) { throw new ArgumentNullException(nameof(withdraw)); } if (close == null) { throw new ArgumentNullException(nameof(close)); } if (accountsQueries == null) { throw new ArgumentNullException(nameof(accountsQueries)); } this.deposit = deposit; this.withdraw = withdraw; this.close = close; this.accountsQueries = accountsQueries; }
public AccountsController( IDepositService depositService, IWithdrawService withdrawService, ICloseService closeService, IAccountsQueries accountsQueries) { this.depositService = depositService; this.withdrawService = withdrawService; this.closeService = closeService; this.accountsQueries = accountsQueries; }
public AccountsController(IMediator mediator, IAccountsQueries accountsQueries) { if (mediator == null) { throw new ArgumentNullException(nameof(mediator)); } if (accountsQueries == null) { throw new ArgumentNullException(nameof(accountsQueries)); } this.mediator = mediator; this.accountsQueries = accountsQueries; }
public CustomersQueries(Context context, IAccountsQueries accountsQueries) { _context = context; _accountsQueries = accountsQueries; }
public AccountsController( IAccountsQueries accountsQueries) { this.accountsQueries = accountsQueries; }
public CustomersQueries(string connectionString, IAccountsQueries accountsQueries) { _connectionString = connectionString; _accountsQueries = accountsQueries; }