public ScenarioDrivenSpecStepRunner(object stepHelper) { _inlineImplementations = new DictionaryStepResolver(); resolvers = new List<IStepResolver> { _inlineImplementations }; if (stepHelper == null) return; if (stepHelper.GetType() .GetCustomAttributes(typeof(ActionStepsAttribute), true) .Length > 0) { resolvers.Add(new ActionStepStepResolver(stepHelper)); } else { resolvers.Add(new ReflectedMethodStepResolver(stepHelper)); } }
public ScenarioDrivenSpecStepRunner(object stepHelper) { _inlineImplementations = new DictionaryStepResolver(); resolvers = new List <IStepResolver> { _inlineImplementations }; if (stepHelper == null) { return; } if (stepHelper.GetType() .GetCustomAttributes(typeof(ActionStepsAttribute), true) .Length > 0) { resolvers.Add(new ActionStepStepResolver(stepHelper)); } else { resolvers.Add(new ReflectedMethodStepResolver(stepHelper)); } }