Ejemplo n.º 1
0
 public PlemionaDefaultFeatures(
     IStepExecutionService stepExecutionService,
     IFeatureLoggingService featureLoggingService
     )
 {
     _stepExecutionService  = stepExecutionService;
     _featureLoggingService = featureLoggingService;
 }
Ejemplo n.º 2
0
        public PlemionaDefaultFeaturesDiagnostics(
            IStepExecutionService stepExecutionService,
            IFeatureLoggingService featureLoggingService
            )
        {
            _plemionaDefaultFeatures = new PlemionaDefaultFeatures(stepExecutionService, featureLoggingService);

            stepExecutionService.OnDelay += stepDelayMilliseconds => OnStepDelay?.Invoke(stepDelayMilliseconds);
            stepExecutionService.OnStepExecutionStart += (stepName, dateStart) => OnStepStart?.Invoke(stepName, dateStart);
            stepExecutionService.OnStepExecutionEnd   += (stepName, dateEnd, duration, stepSuccess) => OnStepEnd?.Invoke(stepName, dateEnd, duration, stepSuccess);
        }