private void AddStepBinding(MethodInfo method, StepDefinitionBaseAttribute stepDefinitionBaseAttr, BindingScope stepScope) { foreach (var bindingType in stepDefinitionBaseAttr.Types) { var stepBinding = bindingFactory.CreateStepBinding(bindingType, stepDefinitionBaseAttr.Regex, method, stepScope); stepBindings.Add(stepBinding); } }
private void AddStepBinding(IBindingMethod bindingMethod, StepDefinitionBaseAttribute stepDefinitionBaseAttr, BindingScope stepScope) { foreach (var bindingType in stepDefinitionBaseAttr.Types) { var stepBinding = bindingFactory.CreateStepBinding(bindingType, stepDefinitionBaseAttr.Regex, bindingMethod, stepScope); stepDefinitions.Add(stepBinding); } }
private void BuildStepBindingFromMethod(MethodInfo method, StepDefinitionBaseAttribute stepDefinitionBaseAttr) { CheckStepBindingMethod(method); ApplyForScope(method, scope => AddStepBinding(method, stepDefinitionBaseAttr, scope)); }
private void BuildStepBindingFromMethod(MethodInfo method, StepDefinitionBaseAttribute stepDefinitionBaseAttr) { CheckStepBindingMethod(method); ApplyForScope(method, scope => AddStepBinding(new RuntimeBindingMethod(method), stepDefinitionBaseAttr, scope)); }