示例#1
0
 public BillsController(IBillsService billsService, IOffersService offersService, IUsersService usersService, IVouchersService vouchersService)
 {
     this.billsService    = billsService;
     this.offersService   = offersService;
     this.usersService    = usersService;
     this.vouchersService = vouchersService;
 }
 public VoucherController(IUnitOfWork db, IVouchersService voucherService, IOffersService offerService, IUsersService userService)
 {
     this.db             = db;
     this.voucherService = voucherService;
     this.offerService   = offerService;
     this.userService    = userService;
 }
 public SmartVouchersController(
     IVouchersService vouchersService,
     IMapper mapper)
 {
     _vouchersService = vouchersService;
     _mapper          = mapper;
 }
示例#4
0
 public ReviewsService(CarRentalDbContext dbContext, IVouchersService vouchersService,
                       IMapper mapper, IOrdersService ordersService)
 {
     this.dbContext       = dbContext;
     this.vouchersService = vouchersService;
     this.mapper          = mapper;
     this.ordersService   = ordersService;
 }
示例#5
0
 public BillController(IUnitOfWork db, IBillsService billService, IOffersService offerService, IUsersService userService, IVouchersService voucherService, IEmailsService emailsService)
 {
     this.db             = db;
     this.billService    = billService;
     this.offerService   = offerService;
     this.userService    = userService;
     this.voucherService = voucherService;
     this.emailsService  = emailsService;
 }
示例#6
0
 public OrdersController(IOrdersService ordersService, IMapper mapper,
                         IVouchersService vouchersService, IHubContext <NotifyHub> notifyHub, ICarsService carsService)
 {
     this.ordersService   = ordersService;
     this.mapper          = mapper;
     this.vouchersService = vouchersService;
     this.notifyHub       = notifyHub;
     this.carsService     = carsService;
 }
 public ExpiredVouchersManager(
     IVouchersService vouchersService,
     TimeSpan idlePeriod,
     ILogFactory logFactory)
 {
     _vouchersService         = vouchersService;
     _timerTrigger            = new TimerTrigger(nameof(ExpiredVouchersManager), idlePeriod, logFactory);
     _timerTrigger.Triggered += Execute;
 }
示例#8
0
 public OrdersService(CarRentalDbContext dbContext, IUsersService usersService, IMapper mapper,
                      ILocationsService locationsService, ICarsService carsService, IVouchersService vouchersService)
 {
     this.dbContext        = dbContext;
     this.usersService     = usersService;
     this.mapper           = mapper;
     this.locationsService = locationsService;
     this.carsService      = carsService;
     this.vouchersService  = vouchersService;
 }
 public RabbitSubscriber(
     string connectionString,
     string exchangeName,
     string queueName,
     ILogFactory logFactory,
     IVouchersService voucherService)
     : base(connectionString, exchangeName, queueName, logFactory)
 {
     _log            = logFactory.CreateLog(this);
     _voucherService = voucherService;
 }
 public ReservedVouchersTimeoutManager(
     IVouchersService vouchersService,
     TimeSpan idlePeriod,
     TimeSpan generatePaymentTimeout,
     TimeSpan finishPaymentTimeout,
     ILogFactory logFactory)
 {
     _vouchersService         = vouchersService;
     _generatePaymentTimeout  = generatePaymentTimeout;
     _finishPaymentTimeout    = finishPaymentTimeout;
     _timerTrigger            = new TimerTrigger(nameof(ReservedVouchersTimeoutManager), idlePeriod, logFactory);
     _timerTrigger.Triggered += Execute;
 }
示例#11
0
 public PurchaseService(
     ITransfersService transfersService,
     ISettingsService settingsService,
     IVouchersService vouchersService,
     ICustomerProfileClient customerProfileClient,
     IWalletManagementClient walletManagementClient,
     ICampaignClient campaignClient,
     IEligibilityEngineClient eligibilityEngineClient,
     IPrivateBlockchainFacadeClient privateBlockchainFacadeClient,
     IRabbitPublisher <VoucherTokensReservedEvent> voucherTokensReservedEventPublisher,
     ILogFactory logFactory)
 {
     _transfersService                    = transfersService;
     _settingsService                     = settingsService;
     _vouchersService                     = vouchersService;
     _customerProfileClient               = customerProfileClient;
     _walletManagementClient              = walletManagementClient;
     _campaignClient                      = campaignClient;
     _eligibilityEngineClient             = eligibilityEngineClient;
     _privateBlockchainFacadeClient       = privateBlockchainFacadeClient;
     _voucherTokensReservedEventPublisher = voucherTokensReservedEventPublisher;
     _log = logFactory.CreateLog(this);
 }
示例#12
0
 public VouchersController(IVouchersService vouchersService, IOffersService offersService, IUsersService usersService)
 {
     this.vouchersService = vouchersService;
     this.offersService   = offersService;
     this.usersService    = usersService;
 }
示例#13
0
 public VouchersController(IUsersService usersService, IMapper mapper, IVouchersService vouchersService)
 {
     this.usersService    = usersService;
     this.mapper          = mapper;
     this.vouchersService = vouchersService;
 }
示例#14
0
 public VouchersController(IVouchersService vouchersService, IAuthorizationService authorizationService, IAuthorizationDataService authData)
 {
     _vouchersService      = vouchersService;
     _authorizationService = authorizationService;
     _authData             = authData;
 }
示例#15
0
 public VouchersSummariesController(IVouchersService vouchersService)
 {
     _vouchersService = vouchersService;
 }
示例#16
0
 public VouchersController(IVouchersService vouchersService, IMapper mapper)
 {
     this.vouchersService = vouchersService;
     this.mapper = mapper;
 }
 public VouchersController(IVouchersService vouchersService, IPurchaseService purchaseService, IMapper mapper)
 {
     _vouchersService = vouchersService;
     _purchaseService = purchaseService;
     _mapper          = mapper;
 }