public PlemionaDefaultFeatures( IStepExecutionService stepExecutionService, IFeatureLoggingService featureLoggingService ) { _stepExecutionService = stepExecutionService; _featureLoggingService = featureLoggingService; }
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); }