Beispiel #1
0
        public void Setup()
        {
            _fixture = new Fixture();
            _mockOrchestrationContext = new Mock <IDurableOrchestrationContext>();

            _apprenticeshipIncentives = _fixture.CreateMany <ApprenticeshipIncentiveOutput>(3).ToList();
            _mockOrchestrationContext.Setup(x => x.CallActivityAsync <List <ApprenticeshipIncentiveOutput> >("GetAllApprenticeshipIncentives", null)).ReturnsAsync(_apprenticeshipIncentives);

            _orchestrator = new LearnerMatchingOrchestrator(Mock.Of <ILogger <LearnerMatchingOrchestrator> >());
        }