GivenReadOnlyStateAggregate

class GivenReadOnlyStateAggregate<S : Any>(val aggregateId: AggregateId, val state: S, val version: Int, val ownerId: String, val deleted: Boolean, val eventId: String, val firstOperator: String, val operator: String, val firstEventTime: Long, val eventTime: Long) : ReadOnlyStateAggregate<S>

A test implementation of ReadOnlyStateAggregate for stateless saga testing.

This class provides a concrete implementation of read-only state aggregate that can be used in test scenarios where state needs to be provided to saga functions.

Parameters

S

The type of the aggregate state.

Constructors

Link copied to clipboard
constructor(aggregateId: AggregateId, state: S, version: Int, ownerId: String, deleted: Boolean, eventId: String, firstOperator: String, operator: String, firstEventTime: Long, eventTime: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val aggregateId: AggregateId

The identifier of the aggregate.

Link copied to clipboard
open override val deleted: Boolean

Whether the aggregate is marked as deleted.

Link copied to clipboard
open override val eventId: String

The ID of the last processed event.

Link copied to clipboard
open override val eventTime: Long

The timestamp of the last event.

Link copied to clipboard
Link copied to clipboard
open override val firstEventTime: Long

The timestamp of the first event.

Link copied to clipboard
open override val firstOperator: String

The operator who created the first event.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val operator: String

The operator who created the last event.

Link copied to clipboard
open override val ownerId: String

The owner identifier of the aggregate.

Link copied to clipboard
open override val state: S

The current state of the aggregate.

Link copied to clipboard
open override val version: Int

The current version of the aggregate.