예제 #1
0
 public AccountsController(
     ICloseAccountUseCase closeAccountUseCase,
     Presenter presenter)
 {
     _closeAccountUseCase = closeAccountUseCase;
     _presenter           = presenter;
 }
예제 #2
0
        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;
 }
예제 #5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CloseAccountValidationUseCase" /> class.
 /// </summary>
 public CloseAccountValidationUseCase(ICloseAccountUseCase useCase)
 {
     this._useCase = useCase;
 }
예제 #6
0
 public AccountsController(
     ICloseAccountUseCase closeService)
 {
     this.closeService = closeService;
 }