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 ProviderContactDetailsOrchestrator(MockClient.Object, MockRecruitVacancyClient.Object, Mock.Of <ILogger <ProviderContactDetailsOrchestrator> >(), Mock.Of <IReviewSummaryService>()); }
public ProviderContactDetailsController(ProviderContactDetailsOrchestrator orchestrator) { _orchestrator = orchestrator; }