DefaultAggregateDsl
class DefaultAggregateDsl<C : Any, S : Any>(commandAggregateType: Class<C>) : AbstractDynamicTestBuilder, AggregateDsl<S>
Default implementation of the AggregateDsl interface for testing aggregate behavior.
This class provides the core functionality for setting up aggregate tests by configuring the testing environment and delegating to the appropriate DSL stages. It manages the service provider and coordinates the creation of GivenDsl instances for test scenarios.
Parameters
commandAggregateType
the class of the command aggregate being tested, used to create verifiers
Type Parameters
C
the command type that triggers aggregate operations
S
the state type maintained by the aggregate
Properties
Functions
Link copied to clipboard
open override fun on(aggregateId: String = generateGlobalId(), tenantId: String = TenantId.DEFAULT_TENANT_ID, stateAggregateFactory: StateAggregateFactory = ConstructorStateAggregateFactory, eventStore: EventStore = InMemoryEventStore(), serviceProvider: ServiceProvider = SimpleServiceProvider(), block: GivenDsl<S>.() -> Unit)
Sets up a test scenario for the specified aggregate.