public void Setup() { MockRecruitVacancyClient.Setup(x => x.GetVacancyAsync(Vacancy.Id)).ReturnsAsync(Vacancy); MockRecruitVacancyClient.Setup(x => x.Validate(Vacancy, ValidationRules)).Returns(new EntityValidationResult()); MockRecruitVacancyClient.Setup(x => x.UpdateDraftVacancyAsync(It.IsAny <Vacancy>(), User)); MockRecruitVacancyClient.Setup(x => x.UpdateEmployerProfileAsync(It.IsAny <EmployerProfile>(), User)); Sut = new TitleOrchestrator(MockClient.Object, MockRecruitVacancyClient.Object, Mock.Of <ILogger <TitleOrchestrator> >(), Mock.Of <IReviewSummaryService>()); }
public TitleController(TitleOrchestrator orchestrator) { _orchestrator = orchestrator; }
public TitleController(TitleOrchestrator orchestrator, IProviderVacancyClient providerVacancyClient) { this.ProviderVacancyClient = providerVacancyClient; _orchestrator = orchestrator; }
public TitleController(TitleOrchestrator orchestrator, IFeature feature) { _orchestrator = orchestrator; _feature = feature; }