Documentation ¶
Index ¶
- type CommandHandlerMock
- type EntityFake
- type EventStoreMock
- func (e *EventStoreMock) Close() error
- func (e *EventStoreMock) Load(ctx context.Context, u uuid.UUID) ([]eh.Event, error)
- func (e *EventStoreMock) LoadFrom(ctx context.Context, id uuid.UUID, version int) ([]eh.Event, error)
- func (e *EventStoreMock) Save(ctx context.Context, events []eh.Event, originalVersion int) error
- type ReadRepoMock
- func (r *ReadRepoMock) Close() error
- func (r *ReadRepoMock) Find(ctx context.Context, u uuid.UUID) (eh.Entity, error)
- func (r *ReadRepoMock) FindAll(ctx context.Context) ([]eh.Entity, error)
- func (r *ReadRepoMock) InnerRepo(ctx context.Context) eh.ReadRepo
- func (r *ReadRepoMock) Remove(ctx context.Context, uuid uuid.UUID) error
- func (r *ReadRepoMock) Save(ctx context.Context, entity eh.Entity) error
- type VersionedEntityMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandlerMock ¶
CommandHandlerMock is a mock implementation of eh.CommandHandler
func (*CommandHandlerMock) HandleCommand ¶
type EntityFake ¶
func (*EntityFake) EntityID ¶
func (e *EntityFake) EntityID() uuid.UUID
type EventStoreMock ¶
func (*EventStoreMock) Close ¶
func (e *EventStoreMock) Close() error
type ReadRepoMock ¶
func (*ReadRepoMock) Close ¶
func (r *ReadRepoMock) Close() error
type VersionedEntityMock ¶
func (*VersionedEntityMock) AggregateVersion ¶
func (s *VersionedEntityMock) AggregateVersion() int
func (*VersionedEntityMock) EntityID ¶
func (s *VersionedEntityMock) EntityID() uuid.UUID
Click to show internal directories.
Click to hide internal directories.