/// <summary>
 ///     Initializes a new instance of the <see cref="DepositUseCase" /> class.
 /// </summary>
 /// <param name="accountService">Account Service.</param>
 /// <param name="depositGetAccountsOutputPort">Output Port.</param>
 /// <param name="accountRepository">Account Repository.</param>
 /// <param name="unitOfWork">Unit Of Work.</param>
 public DepositUseCase(
     AccountService accountService,
     IDepositOutputPort depositGetAccountsOutputPort,
     IAccountRepository accountRepository,
     IUnitOfWork unitOfWork)
 {
     this._accountService = accountService;
     this._depositGetAccountsOutputPort = depositGetAccountsOutputPort;
     this._accountRepository            = accountRepository;
     this._unitOfWork = unitOfWork;
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="DepositUseCase" /> class.
 /// </summary>
 /// <param name="accountService">Account Service.</param>
 /// <param name="depositOutputPort">Output Port.</param>
 /// <param name="accountRepository">Account Repository.</param>
 /// <param name="currencyExchange">Currency Exchange Service.</param>
 /// <param name="unitOfWork">Unit Of Work.</param>
 public DepositUseCase(
     AccountService accountService,
     IDepositOutputPort depositOutputPort,
     IAccountRepository accountRepository,
     ICurrencyExchange currencyExchange,
     IUnitOfWork unitOfWork)
 {
     this._accountService    = accountService;
     this._depositOutputPort = depositOutputPort;
     this._accountRepository = accountRepository;
     this._currencyExchange  = currencyExchange;
     this._unitOfWork        = unitOfWork;
 }