DefaultGivenDsl

class DefaultGivenDsl<S : Any>(val context: AggregateDslContext<S>, val delegate: GivenStage<S>) : AbstractGivenStageDsl<S>

Default implementation of the GivenDsl interface for basic given stage operations.

This class provides a straightforward implementation that delegates all operations to the underlying GivenStage, serving as a bridge between the DSL interface and the actual test execution logic. It extends AbstractGivenStageDsl to inherit common functionality while providing a concrete implementation for the GivenDsl contract.

Type Parameters

S

the state type of the aggregate being tested

Constructors

Link copied to clipboard
constructor(context: AggregateDslContext<S>, delegate: GivenStage<S>)

Properties

Link copied to clipboard
open override val context: AggregateDslContext<S>

the DSL context that manages shared state across test stages

Link copied to clipboard
open override val delegate: GivenStage<S>

the underlying GivenStage that handles the actual test setup and event replay logic