Skip to content

Cratis Chronicle event append testing

Cratis Chronicle’s EventScenario lets you test event-appending code in process without a server, database, or network. Seed the events that already happened, run the operation under test, then check what it appended. The client tabs show each client’s supported workflow; their APIs and constraint coverage differ.

Start with the EventScenario guide to set up a spec. Use the assertion guides when you need to check an append’s outcome or inspect the events in the sequence.

Guide Description
EventScenario Set up event history and exercise an append; .NET uses the Given and When builders
Append Assertions Check success or rejection; .NET provides Should* extensions on IAppendResult
Event Sequence Assertions Check event content and order, including .NET AppendedEventWithResult entries