public SuppressionListService(ISuppressionListRepository suppressionListRepository, IUnitOfWork unitOfWork, IIndexingService indexingService, ISearchService <SuppressedEmail> emailSearchService , ISearchService <SuppressedDomain> domainSearchService) { if (suppressionListRepository == null) { throw new ArgumentNullException("suppressionListRepository"); } this.suppressionListRepository = suppressionListRepository; this.unitOfWork = unitOfWork; this.indexingService = indexingService; this.suppressionEmailSearchService = emailSearchService; this.suppressionDomainSearchService = domainSearchService; }
public ImportLeadProcessor(CronJobDb cronJob, JobService jobService, string importProcessorCacheName) : base(cronJob, jobService, importProcessorCacheName) { leadAdaptersRepository = IoC.Container.GetInstance <ILeadAdaptersRepository>(); serviceProviderRepository = IoC.Container.GetInstance <IServiceProviderRepository>(); importDataRepository = IoC.Container.GetInstance <IImportDataRepository>(); searchService = IoC.Container.GetInstance <ISearchService <Contact> >(); customFieldService = IoC.Container.GetInstance <ICustomFieldService>(); suppressionListService = IoC.Container.GetInstance <ISuppressionListService>(); suppressionListRepository = IoC.Container.GetInstance <ISuppressionListRepository>(); cahceService = IoC.Container.GetInstance <ICachingService>(); communicationService = IoC.Container.GetInstance <ICommunicationService>(); mailGunService = IoC.Container.GetInstance <IMailGunService>(); contactService = IoC.Container.GetInstance <IContactService>(); unitofWork = IoC.Container.GetInstance <IUnitOfWork>(); dropdownValuesService = IoC.Container.GetInstance <IDropdownValuesService>(); }