示例#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 WageOrchestrator(MockClient.Object, MockRecruitVacancyClient.Object, Mock.Of <ILogger <WageOrchestrator> >(),
                                           Mock.Of <IReviewSummaryService>(), Mock.Of <IMinimumWageProvider>());
            }
 public WageController(WageOrchestrator orchestrator, IFeature feature)
 {
     _orchestrator = orchestrator;
     _feature      = feature;
 }
 public WageController(WageOrchestrator orchestrator)
 {
     _orchestrator = orchestrator;
 }