helper

package
v1.1.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAllEventTypesForOneBook

func FilterAllEventTypesForOneBook(bookID uuid.UUID) eventstore.Filter

func FilterAllEventTypesForOneBookOrReader

func FilterAllEventTypesForOneBookOrReader(bookID uuid.UUID, readerID uuid.UUID) eventstore.Filter

func FixtureBookCopyAddedToCirculation

func FixtureBookCopyAddedToCirculation(bookID uuid.UUID, fakeClock time.Time) core.DomainEvent

func FixtureBookCopyLentToReader

func FixtureBookCopyLentToReader(bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent

func FixtureBookCopyRemovedFromCirculation

func FixtureBookCopyRemovedFromCirculation(bookID uuid.UUID, fakeClock time.Time) core.DomainEvent

func FixtureBookCopyReturnedByReader

func FixtureBookCopyReturnedByReader(bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent

func GivenBookCopyAddedToCirculationWasAppended

func GivenBookCopyAddedToCirculationWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, fakeClock time.Time) core.DomainEvent

func GivenBookCopyLentToReaderWasAppended

func GivenBookCopyLentToReaderWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent

func GivenBookCopyRemovedFromCirculationWasAppended

func GivenBookCopyRemovedFromCirculationWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, fakeClock time.Time) core.DomainEvent

func GivenBookCopyReturnedByReaderWasAppended

func GivenBookCopyReturnedByReaderWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent

func GivenSomeOtherEventsWereAppended

func GivenSomeOtherEventsWereAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, numEvents int, startFrom eventstore.MaxSequenceNumberUint, fakeClock time.Time) time.Time

func GivenUniqueID

func GivenUniqueID(t testing.TB) uuid.UUID

func ToStorable

func ToStorable(t testing.TB, domainEvent core.DomainEvent) eventstore.StorableEvent

func ToStorableWithMetadata

func ToStorableWithMetadata(t testing.TB, domainEvent core.DomainEvent, eventMetadata shell.EventMetadata) eventstore.StorableEvent

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL