concept step definition code in category BDD

appears as: step definition code, step definition code
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.

For example, the step definition code in figure 1.9 involves creating a new account:

Writing a step definition is an exercise in code design. When you write the step definition, you come in contact with your application code for the first time. Although you may have some ideas about the high-level architecture and design, the step definition code is where the rubber meets the road and your design takes the form of real code for the first time.

To illustrate and document this technical behavior more clearly, you start by illustrating what the method used in the step definition code ( in the previous code snippet) is expected to do, in the form of a unit test: