public LeadService(IServiceProvider unitOfWork, Lazy <IUserInfo> userInfo, ICustomerAccountService accountService, ILogger <LeadService> logger, IIndividualBonusIntentService individualBonusIntents, IOrganizationBonusIntentService organizationBonusIntents, MultiLeadEventHandler multiHandler, IOrganizationMarketerService marketerService) : base(unitOfWork) { _userInfo = userInfo; _accountService = accountService; _logger = logger; _individualBonusIntents = individualBonusIntents; _organizationBonusIntents = organizationBonusIntents; _marketerService = marketerService; _marketingAgreements = UnitOfWork.RepositoryAsync <MarketingAgreement>(); _customers = UnitOfWork.RepositoryAsync <Customer>(); _applicationUsers = UnitOfWork.RepositoryAsync <ApplicationUser>(); _organizations = UnitOfWork.RepositoryAsync <Organization>(); AddEventHandler(multiHandler); }
public CandidateService( IRepositoryAsync <RecruitingAgreement> recruitingAgreements, IOrganizationPersonService organizationPersonService, IIndividualBonusIntentService individualBonusIntents, IOrganizationBonusIntentService organizationBonusIntents, ILogger <CandidateService> logger, IUserInfo userInfo, MultiCandidateEventsHandler events, IServiceProvider serviceProvider) : base(serviceProvider) { _recruitingAgreements = recruitingAgreements; _organizationPersonService = organizationPersonService; _individualBonusIntents = individualBonusIntents; _organizationBonusIntents = organizationBonusIntents; _recruiterRepository = UnitOfWork.RepositoryAsync <OrganizationRecruiter>(); _applicationUsers = UnitOfWork.RepositoryAsync <ApplicationUser>(); _logger = logger; _userInfo = userInfo; AddEventHandler(events); }