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
Functions
Link copied to clipboard
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.