DefaultAggregateDslContext

class DefaultAggregateDslContext<S : Any>(val expectStages: MutableMap<String, ExpectStage<S>> = mutableMapOf()) : AggregateDslContext<S>

Default implementation of AggregateDslContext using a mutable map for storage.

This class provides a concrete implementation of the AggregateDslContext interface, using a standard mutable map to store ExpectStage references. It can be initialized with an existing map or will create a new empty map by default.

Parameters

S

the state type of the aggregate being tested

Constructors

Link copied to clipboard
constructor(expectStages: MutableMap<String, ExpectStage<S>> = mutableMapOf())

Properties

Link copied to clipboard

the mutable map used to store ExpectStage instances (defaults to empty map)

Functions

Link copied to clipboard

Returns a set of all available reference names.

Link copied to clipboard
open override fun getExpectStage(ref: String): ExpectStage<S>
Link copied to clipboard
open override fun setExpectStage(ref: String, expectStage: ExpectStage<S>)