test projection

This commit is contained in:
Elio Bischof
2023-06-30 16:23:39 +02:00
parent 69fe35411d
commit 5f7e3b2968
7 changed files with 613 additions and 86 deletions

View File

@@ -31,6 +31,8 @@ func (p *PushedEvent) SetBaseEvent(b *eventstore.BaseEvent) {
p.BaseEvent = b
}
var PushedEventMapper = eventstore.GenericEventMapper[PushedEvent]
func NewPushedEvent(
ctx context.Context,
aggregate *Aggregate,

View File

@@ -5,5 +5,5 @@ import (
)
func RegisterEventMappers(es *eventstore.Eventstore) {
es.RegisterFilterEventMapper(AggregateType, PushedEventType, eventstore.GenericEventMapper[PushedEvent])
es.RegisterFilterEventMapper(AggregateType, PushedEventType, PushedEventMapper)
}