public CrateAccountHandler(IRestClient restClient, ILogger <CrateAccountHandler> logger, IPasswordHasher passwordHasher) { _restClient = restClient; _logger = logger; _passwordHasher = passwordHasher; _restClient.Configure(EndpointConstants.AccountsBaseUrl, EndpointConstants.AccountsEndpointTimeout); }
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); }
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); }