import { AvailabilityTestConfig } from 'common' ; import { OrchestrationSteps } from '../orchestration/orchestration-steps' ; import { E2EScanFactories } from './e2e-scan-scenario-definitions' ; import { ScanScenarioDriver } from './scan-scenario-driver' ; export function createScenarioDrivers ( orchestrationSteps , availabilityTestConfig ) { return E2EScanFactories . map ( ( makeDefinition ) => makeDefinition ( availabilityTestConfig , orchestrationSteps . getWebApiConfig ( ) ) ) . map ( ( definition ) => new ScanScenarioDriver ( orchestrationSteps , definition ) ) ; }