🃏
Bard
  • Introduction
  • Getting Started
    • Installation
    • Writing Your First Test
    • Configuration
    • .NET Fiddles
  • Anatomy Of A Scenario
    • Given
      • StoryData
      • StoryBook
      • Chapter
      • Story
    • When
    • Then
      • HTTP Response
      • Headers
      • Bad Requests
      • Performance Testing
  • Advanced
    • Dependency Injection
  • Miscellaneous
    • Change Log
    • Migration Guide
  • gRPC
    • Installation
    • Configuration
    • Writing A Test
  • Tips & Tricks
    • FAQ
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Anatomy Of A Scenario
  2. Given

Chapter

A Chapter is used to navigate through our Scenario. It contains Stories. It allows us to guide the test author what they can do next.

The important thing to remember is that the Chapter can receive the output of the previous Story as an input via the StoryData. We do that by inheriting from the base Class Chapter and specify our StoryData class as the Generic Type. Our class should look like this.

public class BankAccountHasBeenCreated : Chapter<MyStoryData>
{
}

Now we have our Chapter we can add our Stories.

PreviousStoryBookNextStory

Last updated 4 years ago

Was this helpful?