on

open override fun on(aggregateId: String, tenantId: String, stateAggregateFactory: StateAggregateFactory, eventStore: EventStore, serviceProvider: ServiceProvider, block: GivenDsl<S>.() -> Unit)

Sets up a test scenario for the specified aggregate.

This method initializes the aggregate verifier with the provided configuration and executes the test block using a GivenDsl instance. The resulting dynamic test nodes are collected for JUnit 5 dynamic test execution.

Parameters

aggregateId

the unique identifier for the aggregate instance

tenantId

the tenant identifier for multi-tenant scenarios

stateAggregateFactory

factory for creating state aggregate instances

eventStore

the event store for retrieving and storing domain events

serviceProvider

the service provider containing dependencies for the test

block

the test scenario definition using GivenDsl