예제 #1
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);
 }