public AccountsController( ICloseAccountUseCase closeAccountUseCase, Presenter presenter) { _closeAccountUseCase = closeAccountUseCase; _presenter = presenter; }
public async Task <IActionResult> Close( [FromServices] ICloseAccountUseCase useCase, [FromRoute][Required] Guid accountId) { useCase.SetOutputPort(this); await useCase.Execute(accountId) .ConfigureAwait(false); return(this._viewModel !); }
/// <summary> /// Initializes a new instance of the <see cref="CloseAccountValidationUseCase" /> class. /// </summary> public CloseAccountValidationUseCase(ICloseAccountUseCase useCase, Notification notification) { this._useCase = useCase; this._notification = notification; this._outputPort = new CloseAccountPresenter(); }
public AccountsController(ICloseAccountUseCase useCase, Notification notification) { this._useCase = useCase; this._notification = notification; }
/// <summary> /// Initializes a new instance of the <see cref="CloseAccountValidationUseCase" /> class. /// </summary> public CloseAccountValidationUseCase(ICloseAccountUseCase useCase) { this._useCase = useCase; }
public AccountsController( ICloseAccountUseCase closeService) { this.closeService = closeService; }