concept step definition method in category BDD

appears as: step definition method, step definition methods, A step definition method, The step definition method, step definition methods, A step definition method
BDD in Action: Behavior-Driven Development for the whole software lifecycle

This is an excerpt from Manning's book BDD in Action: Behavior-Driven Development for the whole software lifecycle.

A step definition method can also have several attributes, so that the same method can be used for several different variations in the scenario texts:

[When(@"I go from (.*) to (.*)")]
[When(@"I travel from (.*) to (.*)")]
public void GivenTheFlyingDistance(string departure, string destination)
{
    ...
}

If you aren’t fond of regular expressions, SpecFlow also supports alternative step-definition matching rules based on the method name. You name the step definition method after the step text you want to match, using either underscores or camel case. You can also include parameter placeholders in uppercase. The parameter placeholders will be matched with the corresponding method parameters. For example, you could use this approach for the following step:

6.1.2. Keep the step definition methods simple

A step definition method is like the conductor of an orchestra: it knows at a high level how to perform a task, and it coordinates calls to other more application-specific libraries that do the more detailed work.