Exemple #1
0
 public MerchantsController(
     [NotNull] IMerchantService merchantService,
     [NotNull] IIataService iataService,
     [NotNull] IPayInvoiceClient payInvoiceClient,
     [NotNull] IPayInternalClient payInternalClient,
     [NotNull] IPayMerchantClient payMerchantClient)
 {
     _merchantService   = merchantService ?? throw new ArgumentNullException(nameof(merchantService));
     _iataService       = iataService ?? throw new ArgumentNullException(nameof(iataService));
     _payInvoiceClient  = payInvoiceClient ?? throw new ArgumentNullException(nameof(payInvoiceClient));
     _payInternalClient = payInternalClient ?? throw new ArgumentNullException(nameof(payInternalClient));
     _payMerchantClient = payMerchantClient ?? throw new ArgumentNullException(nameof(payMerchantClient));
 }
 public InvoicesController(
     IIataService iataService,
     IMerchantService merchantService,
     IPayInternalClient payInternalClient,
     IPayInvoiceClient payInvoiceClient,
     ILogFactory logFactory)
 {
     _iataService       = iataService;
     _merchantService   = merchantService;
     _payInternalClient = payInternalClient;
     _payInvoiceClient  = payInvoiceClient ?? throw new ArgumentNullException(nameof(payInvoiceClient));
     _log = logFactory?.CreateLog(this) ?? throw new ArgumentNullException(nameof(logFactory));
 }
Exemple #3
0
 public PayHistoryService(IPayHistoryClient payHistoryClient, ILogFactory logFactory,
                          IMerchantService merchantService, IPayInvoiceClient payInvoiceClient,
                          IExplorerUrlResolver explorerUrlResolver, IEthereumCoreClient ethereumCoreClient,
                          IIataService iataService, IHistoryOperationTitleProvider historyOperationTitleProvider,
                          string merchantDefaultLogoUrl)
 {
     _payHistoryClient              = payHistoryClient;
     _merchantService               = merchantService;
     _payInvoiceClient              = payInvoiceClient;
     _explorerUrlResolver           = explorerUrlResolver;
     _ethereumCoreClient            = ethereumCoreClient;
     _iataService                   = iataService;
     _historyOperationTitleProvider = historyOperationTitleProvider;
     _merchantDefaultLogoUrl        = merchantDefaultLogoUrl;
     _log = logFactory.CreateLog(this);
 }
Exemple #4
0
 public SearchRecomendationService(IEnumerable <ISearchFlights> searchFlights, IIataService validation)
 {
     this.validation    = validation;
     this.searchFlights = searchFlights;
 }