public VacancyTitlePopularityCheckRule(IApprenticeshipProgrammeProvider apprenticeshipProgrammeProvider, IGetTitlePopularity popularityService, QaRulesConfiguration qaRulesConfig) : base(RuleId.TitlePopularity) { _apprenticeshipProgrammeProvider = apprenticeshipProgrammeProvider; _popularityService = popularityService; _qaRulesConfig = qaRulesConfig; }
public VacancyRuleSet(QaRulesConfiguration qaRulesConfig, IApprenticeshipProgrammeProvider apprenticeshipProgrammeProvider, IProfanityListProvider profanityListProvider, IBannedPhrasesProvider bannedPhrasesProvider, IGetTitlePopularity popularityService) : base(nameof(VacancyRuleSet)) { AddRule(new VacancyProfanityChecksRule(profanityListProvider)); AddRule(new VacancyBannedPhraseChecksRule(bannedPhrasesProvider)); AddRule(new VacancyTitlePopularityCheckRule(apprenticeshipProgrammeProvider, popularityService, qaRulesConfig)); }