AggregateVerifier

Aggregate Verifier . 聚合测试套件 by Given/When/Expect.

Author

ahoo wang

Functions

Link copied to clipboard
fun <C : Any, S : Any> Class<C>.aggregateVerifier(aggregateId: String = GlobalIdGenerator.generateAsString(), tenantId: String = TenantId.DEFAULT_TENANT_ID, stateAggregateFactory: StateAggregateFactory = ConstructorStateAggregateFactory, eventStore: EventStore = InMemoryEventStore(), serviceProvider: ServiceProvider = SimpleServiceProvider()): GivenStage<S>
fun <C : Any, S : Any> aggregateVerifier(commandAggregateType: Class<C>, stateAggregateType: Class<S>, aggregateId: String = GlobalIdGenerator.generateAsString(), tenantId: String = TenantId.DEFAULT_TENANT_ID, stateAggregateFactory: StateAggregateFactory = ConstructorStateAggregateFactory, eventStore: EventStore = InMemoryEventStore(), serviceProvider: ServiceProvider = SimpleServiceProvider()): GivenStage<S>