AggregateDsl

Defines the Domain Specific Language (DSL) for aggregate testing in the WOW framework.

This interface provides the entry point for creating test scenarios that validate aggregate behavior through a fluent, readable syntax. It allows setting up test preconditions, executing commands, and verifying results in a structured manner.

Type Parameters

S

the type of the aggregate state

Inheritors

Functions

Link copied to clipboard
abstract fun fork(ref: String, name: String = "", verifyError: Boolean = false, block: ForkedVerifiedStageDsl<S>.() -> Unit)

Creates a branching test scenario from a previously referenced ExpectStage.

Link copied to clipboard
abstract fun on(aggregateId: String = generateGlobalId(), tenantId: String = TenantId.DEFAULT_TENANT_ID, stateAggregateFactory: StateAggregateFactory = ConstructorStateAggregateFactory, eventStore: EventStore = InMemoryEventStore(), serviceProvider: ServiceProvider = SimpleServiceProvider(), block: GivenDsl<S>.() -> Unit)

Starts a new test scenario for an aggregate.