Beispiel #1
0
 public DemoLeadService(
     IReferralLeadRepository referralLeadRepository,
     ISettingsService settingsService,
     INotificationPublisherService notificationPublisherService,
     IHashingManager hashingManager,
     IAgentManagementClient agentManagementClient,
     ICustomerProfileClient customerProfileClient,
     IDictionariesClient dictionariesClient,
     CommissionManager commissionManager,
     ILogFactory logFactory,
     int delay,
     IOfferToPurchasePurchaseRepository offerToPurchasePurchaseRepository,
     IRabbitPublisher <PropertyLeadApprovedReferralEvent> propertyLeadApprovedReferralPublisher,
     IRabbitPublisher <OfferToPurchaseByLeadEvent> offerToPurchasePublisher,
     IRabbitPublisher <LeadStateChangedEvent> leadStateChangedPublisher,
     IMapper mapper,
     IPropertyPurchaseRepository propertyPurchaseRepository)
 {
     _referralLeadRepository       = referralLeadRepository;
     _settingsService              = settingsService;
     _notificationPublisherService = notificationPublisherService;
     _hashingManager        = hashingManager;
     _agentManagementClient = agentManagementClient;
     _customerProfileClient = customerProfileClient;
     _dictionariesClient    = dictionariesClient;
     _commissionManager     = commissionManager;
     _delay = delay;
     _offerToPurchasePurchaseRepository     = offerToPurchasePurchaseRepository;
     _propertyLeadApprovedReferralPublisher = propertyLeadApprovedReferralPublisher;
     _offerToPurchasePublisher   = offerToPurchasePublisher;
     _leadStateChangedPublisher  = leadStateChangedPublisher;
     _propertyPurchaseRepository = propertyPurchaseRepository;
     _mapper = mapper;
     _log    = logFactory.CreateLog(this);
 }
Beispiel #2
0
 public ReferralHotelsService(
     IStakeService stakeService,
     ICustomerProfileClient customerProfileClient,
     ICurrencyConvertorClient currencyConverterClient,
     ICampaignClient campaignClient,
     IPartnerManagementClient partnerManagementClient,
     IRabbitPublisher <HotelReferralUsedEvent> rabbitPublisher,
     INotificationPublisherService notificationPublisherService,
     IReferralHotelsRepository referralHotelsRepository,
     ISettingsService settingsService,
     IHashingManager hashingManager,
     TimeSpan referralExpirationPeriod,
     TimeSpan referralLimitPeriod,
     int referralLimit,
     IMapper mapper,
     string globalBaseCurrencyCode,
     ILogFactory logFactory)
 {
     _stakeService                 = stakeService;
     _customerProfileClient        = customerProfileClient;
     _currencyConverterClient      = currencyConverterClient;
     _campaignClient               = campaignClient;
     _partnerManagementClient      = partnerManagementClient;
     _rabbitPublisher              = rabbitPublisher;
     _notificationPublisherService = notificationPublisherService;
     _referralHotelsRepository     = referralHotelsRepository;
     _settingsService              = settingsService;
     _hashingManager               = hashingManager;
     _referralExpirationPeriod     = referralExpirationPeriod;
     _referralLimitPeriod          = referralLimitPeriod;
     _referralLimit                = referralLimit;
     _mapper = mapper;
     _globalBaseCurrencyCode = globalBaseCurrencyCode;
     _log = logFactory.CreateLog(this);
 }
 public DemoHotelService(
     string baseCurrencyCode,
     IReferralHotelsRepository referralHotelsRepository,
     ISettingsService settingsService,
     INotificationPublisherService notificationPublisherService,
     IHashingManager hashingManager,
     ICustomerProfileClient customerProfileClient,
     ICampaignClient campaignClient,
     ILogFactory logFactory,
     TimeSpan referralExpirationPeriod,
     IMapper mapper,
     IRabbitPublisher <HotelReferralUsedEvent> hotelReferralUsedPublisher)
 {
     _baseCurrencyCode             = baseCurrencyCode;
     _referralHotelsRepository     = referralHotelsRepository;
     _settingsService              = settingsService;
     _notificationPublisherService = notificationPublisherService;
     _hashingManager           = hashingManager;
     _customerProfileClient    = customerProfileClient;
     _campaignClient           = campaignClient;
     _referralExpirationPeriod = referralExpirationPeriod;
     _mapper = mapper;
     _hotelReferralUsedPublisher = hotelReferralUsedPublisher;
     _log = logFactory.CreateLog(this);
 }
Beispiel #4
0
 public ReferralLeadService(
     IStakeService stakeService,
     IMAVNPropertyIntegrationClient propertyIntegrationClient,
     IRabbitPublisher <PropertyLeadApprovedReferralEvent> propertyLeadApprovedReferralPublisher,
     IReferralLeadRepository referralLeadRepository,
     INotificationPublisherService notificationPublisherService,
     ISettingsService settingsService,
     IHashingManager hashingManager,
     IAgentManagementClient agentManagementClient,
     ICustomerProfileClient customerProfileClient,
     IDictionariesClient dictionariesClient,
     IPropertyPurchaseRepository propertyPurchaseRepository,
     IRabbitPublisher <LeadStateChangedEvent> leadStateChangedPublisher,
     IMapper mapper,
     ILogFactory logFactory)
 {
     _stakeService = stakeService;
     _propertyIntegrationClient             = propertyIntegrationClient;
     _propertyLeadApprovedReferralPublisher = propertyLeadApprovedReferralPublisher;
     _referralLeadRepository       = referralLeadRepository;
     _notificationPublisherService = notificationPublisherService;
     _settingsService            = settingsService;
     _hashingManager             = hashingManager;
     _agentManagementClient      = agentManagementClient;
     _customerProfileClient      = customerProfileClient;
     _dictionariesClient         = dictionariesClient;
     _propertyPurchaseRepository = propertyPurchaseRepository;
     _leadStateChangedPublisher  = leadStateChangedPublisher
                                   ?? throw new ArgumentNullException(nameof(propertyLeadApprovedReferralPublisher));
     _mapper = mapper;
     _log    = logFactory.CreateLog(this);
 }
 public AuthenticationService(HeroesDbContext context, IHashingManager hashingManager, IOptions <AppSettings> appSettings, IJWTService jwtService)
 {
     _context        = context;
     _hashingManager = hashingManager;
     _appSettings    = appSettings.Value;
     _jwtService     = jwtService;
 }
 public UserService(HeroesDbContext context, IHashingManager hashingManager, IEmailSenderService emailSenderService, IJWTService jwtService)
 {
     _context            = context;
     _hashingManager     = hashingManager;
     _emailSenderService = emailSenderService;
     _jwtService         = jwtService;
 }
 public ReferralService(
     IReferralRepository referralRepository,
     int referralCodeSize,
     IHashingManager hashingManager,
     ILogFactory logFactory)
 {
     _referralRepository = referralRepository;
     _referralCodeSize   = referralCodeSize;
     _hashingManager     = hashingManager;
     _log = logFactory.CreateLog(this);
 }