Exemplo n.º 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);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 public CustomersController(
     ICustomerProfileClient customerProfileClient,
     IAgentManagementClient agentManagementClient,
     IOperationsHistoryClient operationsHistoryClient,
     IReferralService referralService,
     IPrivateBlockchainFacadeClient pbfClient,
     ISettingsService settingsService,
     IPrivateBlockchainFacadeClient privateBlockchainFacadeClient,
     ICustomerManagementServiceClient customerManagementServiceClient,
     IWalletManagementClient walletManagementClient,
     ICrossChainWalletLinkerClient crossChainWalletLinkerClient,
     IHistoryConverter historyConverter,
     ICampaignClient campaignClient,
     IMapper mapper)
 {
     _customerProfileClient   = customerProfileClient;
     _agentManagementClient   = agentManagementClient;
     _operationsHistoryClient = operationsHistoryClient;
     _referralService         = referralService;
     _pbfClient       = pbfClient;
     _settingsService = settingsService;
     _privateBlockchainFacadeClient = privateBlockchainFacadeClient ??
                                      throw new ArgumentNullException(nameof(privateBlockchainFacadeClient));
     _customerManagementServiceClient = customerManagementServiceClient ??
                                        throw new ArgumentNullException(nameof(customerManagementServiceClient));
     _walletManagementClient = walletManagementClient ??
                               throw new ArgumentNullException(nameof(walletManagementClient));
     _crossChainWalletLinkerClient = crossChainWalletLinkerClient ??
                                     throw new ArgumentNullException(nameof(crossChainWalletLinkerClient));
     _historyConverter = historyConverter;
     _campaignClient   = campaignClient;
     _mapper           = mapper;
 }
Exemplo n.º 4
0
 public AgentsController(
     IRequestContext requestContext,
     ICustomerProfileClient customerProfileClient,
     IAgentManagementClient agentManagementClient)
 {
     _requestContext        = requestContext;
     _customerProfileClient = customerProfileClient;
     _agentManagementClient = agentManagementClient;
 }
Exemplo n.º 5
0
 public SettingsController(
     ICurrencyConvertorClient currencyConverterClient,
     IAgentManagementClient agentManagementClient,
     ICrossChainWalletLinkerClient crossChainWalletLinkerClient,
     ICrossChainTransfersClient crossChainTransfersClient,
     IMapper mapper)
 {
     _currencyConverterClient = currencyConverterClient;
     _mapper = mapper;
     _agentManagementClient        = agentManagementClient;
     _crossChainWalletLinkerClient = crossChainWalletLinkerClient;
     _crossChainTransfersClient    = crossChainTransfersClient;
 }