public StepMethodInvoker(StepType stepType, MethodBase method, KeyValuePair <string, object>[] supportedParameters = null) { Method = method; Type = stepType; Parameters = method.BindParameters(supportedParameters); Name = new StepName(Type, method.Name, supportedParameters); SourceDescription = $"{method.DeclaringType?.FullName}.{method.Name}"; }
public StepMethodInvoker(StepType stepType, MethodBase method, KeyValuePair <string, object>[] supportedParameters = null) { Method = method; Type = stepType; Parameters = method.BindParameters(supportedParameters); Name = new StepName(Type, method.Name, supportedParameters); ExceptionExpected = method.AttributeOrDefault <ThrowsAttribute>() != null; SourceDescription = string.Format("{0}.{1}", method.DeclaringType.FullName, method.Name); }