mutableEventLogOf

fun mutableEventLogOf(clock: Clock = Clock.System): MutableEventLog

Creates a new MutableEventLog, with no aggregate.

Parameters

clock

the Clock used to generate new events.


fun mutableEventLogOf(vararg events: Pair<EventIdentifier, ByteArray>, clock: Clock = Clock.System): MutableEventLog
fun mutableEventLogOf(vararg events: Event, clock: Clock = Clock.System): MutableEventLog

Creates a new MutableEventLog, with no aggregate.

Parameters

events

some events to pre-populate the history.

clock

the Clock used to generate new events.