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.

Parameters

S

the type of the aggregate state

Inheritors

Properties

Link copied to clipboard

The aggregate DSL context for managing shared test state.

Link copied to clipboard

The public service provider where services are registered.

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
open override fun inject(inject: ServiceProvider.() -> Unit)

Injects services into the public service provider.

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.