/// <summary> /// Initializes a new instance of the <see cref="TransferUseCase" /> class. /// </summary> /// <param name="accountRepository">Account Repository.</param> /// <param name="unitOfWork">Unit Of Work.</param> /// <param name="accountFactory"></param> /// <param name="currencyExchange"></param> public TransferUseCase( IAccountRepository accountRepository, IUnitOfWork unitOfWork, IAccountFactory accountFactory, ICurrencyExchange currencyExchange) { this._accountRepository = accountRepository; this._unitOfWork = unitOfWork; this._accountFactory = accountFactory; this._currencyExchange = currencyExchange; this._outputPort = new TransferPresenter(); }
public void SetOutputPort(IOutputPort outputPort) { _outputPort = outputPort; _useCase.SetOutputPort(outputPort); }
/// <inheritdoc /> public void SetOutputPort(IOutputPort outputPort) => this._outputPort = outputPort;
/// <inheritdoc /> public void SetOutputPort(IOutputPort outputPort) { this._outputPort = outputPort; this._useCase.SetOutputPort(outputPort); }
public void SetOutputPort(IOutputPort outputPort) { _outputPort = outputPort; }