Versions in this module Expand all Collapse all v0 v0.2.1 Sep 22, 2023 Changes in this version + type AggregateRootGiven struct + func (sc AggregateRootGiven[I, T]) When(fn func(T) error) AggregateRootWhen[I, T] + type AggregateRootInit struct + func AggregateRoot(typ aggregate.Type[I, T]) AggregateRootInit[I, T] + func (sc AggregateRootInit[I, T]) Given(events ...event.Persisted) AggregateRootGiven[I, T] + func (sc AggregateRootInit[I, T]) When(fn func() (T, error)) AggregateRootWhen[I, T] + type AggregateRootThen struct + func (sc AggregateRootThen[I, T]) AssertOn(t *testing.T) + type AggregateRootWhen struct + func (sc AggregateRootWhen[I, T]) Then(v version.Version, events ...event.Envelope) AggregateRootThen[I, T] + func (sc AggregateRootWhen[I, T]) ThenError(err error) AggregateRootThen[I, T] + func (sc AggregateRootWhen[I, T]) ThenFails() AggregateRootThen[I, T] + type CommandHandlerGiven struct + func (sc CommandHandlerGiven[Cmd, T]) When(cmd command.Envelope[Cmd]) CommandHandlerWhen[Cmd, T] + type CommandHandlerInit struct + func CommandHandler() CommandHandlerInit[Cmd, T] + func (sc CommandHandlerInit[Cmd, T]) Given(events ...event.Persisted) CommandHandlerGiven[Cmd, T] + func (sc CommandHandlerInit[Cmd, T]) When(cmd command.Envelope[Cmd]) CommandHandlerWhen[Cmd, T] + type CommandHandlerThen struct + func (sc CommandHandlerThen[Cmd, T]) AssertOn(t *testing.T, handlerFactory func(event.Store) T) + type CommandHandlerWhen struct + func (sc CommandHandlerWhen[Cmd, T]) Then(events ...event.Persisted) CommandHandlerThen[Cmd, T] + func (sc CommandHandlerWhen[Cmd, T]) ThenError(err error) CommandHandlerThen[Cmd, T] + func (sc CommandHandlerWhen[Cmd, T]) ThenFails() CommandHandlerThen[Cmd, T]