GivenInitializationCommand
data class GivenInitializationCommand(val aggregateId: AggregateId, val id: String = generateGlobalId(), val ownerId: String = OwnerId.DEFAULT_OWNER_ID, val requestId: String = generateGlobalId(), val isCreate: Boolean = true, val allowCreate: Boolean = false, val isVoid: Boolean = false, val header: Header = DefaultHeader.empty()) : CommandMessage<GivenInitialization> , NamedAggregate
A command message used for initializing aggregates with given events during testing.
This command is used internally by the testing framework to set up aggregate state by replaying domain events. It implements the CommandMessage interface and provides default values suitable for testing scenarios.
Properties
Link copied to clipboard
the identifier of the aggregate to initialize
Link copied to clipboard
Link copied to clipboard
The aggregate version (null for initialization commands).
Link copied to clipboard
allows aggregate creation if it doesn't exist
Link copied to clipboard
The command body, which is the GivenInitialization marker object.
Link copied to clipboard
Link copied to clipboard
The timestamp when this command was created.
Link copied to clipboard