Exemplo n.º 1
0
 public CrateAccountHandler(IRestClient restClient, ILogger <CrateAccountHandler> logger, IPasswordHasher passwordHasher)
 {
     _restClient     = restClient;
     _logger         = logger;
     _passwordHasher = passwordHasher;
     _restClient.Configure(EndpointConstants.AccountsBaseUrl, EndpointConstants.AccountsEndpointTimeout);
 }
Exemplo n.º 2
0
 public CreateTransactionHandler(IRestClient restClient, ILogger <CreateTransactionHandler> logger,
                                 ICommandHandler <GetAccountById, BaseResponse <Models.Account.Account> > getAccountByUdCommandHandler,
                                 ICommandHandler <UpdateAccountBalance, BaseResponse <Models.Account.Account> > updateAccountBalanceCommandHandler)
 {
     _restClient = restClient;
     _logger     = logger;
     _getAccountByUdCommandHandler       = getAccountByUdCommandHandler;
     _updateAccountBalanceCommandHandler = updateAccountBalanceCommandHandler;
     _restClient.Configure(EndpointConstants.TransactionsBaseUrl, EndpointConstants.TransactionsEndpointTimeout);
 }
Exemplo n.º 3
0
 public GetAccountByEmailHandler(IRestClient restClient, ILogger <GetAccountByEmail> logger)
 {
     _restClient = restClient;
     _logger     = logger;
     _restClient.Configure(EndpointConstants.AccountsBaseUrl, EndpointConstants.AccountsEndpointTimeout);
 }
 public UpdateAccountBalanceCommandHandler(IRestClient restClient, ILogger <UpdateAccountBalanceCommandHandler> logger)
 {
     _restClient = restClient;
     _logger     = logger;
     _restClient.Configure(EndpointConstants.AccountsBaseUrl, EndpointConstants.AccountsEndpointTimeout);
 }