Esempio n. 1
0
            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;
 }
Esempio n. 3
0
 public TitleController(TitleOrchestrator orchestrator, IProviderVacancyClient providerVacancyClient)
 {
     this.ProviderVacancyClient = providerVacancyClient;
     _orchestrator = orchestrator;
 }
Esempio n. 4
0
 public TitleController(TitleOrchestrator orchestrator, IFeature feature)
 {
     _orchestrator = orchestrator;
     _feature      = feature;
 }