Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 private void BuildStepBindingFromMethod(MethodInfo method, StepDefinitionBaseAttribute stepDefinitionBaseAttr)
 {
     CheckStepBindingMethod(method);
     ApplyForScope(method, scope => AddStepBinding(method, stepDefinitionBaseAttr, scope));
 }
Example #4
0
 private void BuildStepBindingFromMethod(MethodInfo method, StepDefinitionBaseAttribute stepDefinitionBaseAttr)
 {
     CheckStepBindingMethod(method);
     ApplyForScope(method, scope => AddStepBinding(new RuntimeBindingMethod(method), stepDefinitionBaseAttr, scope));
 }