public IBrowserStepStrategy Create(Step step) { IBrowserStepStrategy strategy = _stepStrategies.FirstOrDefault(x => x.IsFor(step.GetType())); if (strategy == null) throw new NotImplementedException( string.Format("No step strategies were available to handle the '{0}' strategy type.", step.GetType().Name)); return strategy; }
public IApiStepStrategy Create(Step step) { return _stepStrategies.First(x => x.IsFor(step.GetType())); }