package Ġcom . github . has chi . ha ush al ts bu ch . infra struktur Ċ Ċ import Ġcom . github . has chi . dom in ium . ha ush al ts bu ch . core . application . Inf ra struktur fab rik Ċ import Ġcom . github . has chi . dom in ium . ha ush al ts bu ch . core . domain . H istor ie Ċ import Ġcom . github . has chi . dom in ium . ha ush al ts bu ch . core . model . Ze it Ċ import Ġorg . ax on framework . command handling . Command Bus Ċ import Ġorg . ax on framework . command handling . Command Message Ċ import Ġorg . ax on framework . command handling . Simple Command Bus Ċ import Ġorg . ax on framework . config . Configuration Ċ import Ġorg . ax on framework . events ourcing . event store . Embedded Event Store Ċ import Ġorg . ax on framework . events ourcing . event store . Event Store Ċ import Ġorg . ax on framework . events ourcing . event store . in memory . InMemory Event Storage Engine Ċ import Ġorg . ax on framework . messaging . intercept ors . Correlation Data Interceptor Ċ import Ġorg . ax on framework . query handling . Query Bus Ċ import Ġorg . ax on framework . query handling . Simple Query Bus Ċ import Ġorg . ax on framework . serialization . Serializer Ċ Ċ class ĠTest Inf ra struktur Factory Ġ: ĠInf ra struktur fab rik Ċ { ĊĠĠĠ Ġoverride Ġfun Ġze it (): ĠZeit ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠTest zeit ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġquery Bus ( kon figuration : ĠConfiguration ): ĠQuery Bus ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġquery Bus Ġ= ĠSimple Query Bus () ĊĠĠĠĠĠĠĠ Ġquery Bus . register Handler Interceptor ( Logging Interceptor (" QUERY Ġ Ġ")) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġquery Bus ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcommand Bus ( kon figuration : ĠConfiguration ): ĠCommand Bus ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcorrelation Data Interceptor Ġ= ĠCorre lation Data Interceptor < Command Message < *> >( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġkon figuration . correlation Data Providers ()) ĊĊĠĠĠĠĠĠĠ Ġval Ġcommand Bus Ġ= ĠSimple Command Bus () ĊĊĠĠĠĠĠĠĠ Ġcommand Bus . register Handler Interceptor ( correlation Data Interceptor ) ĊĠĠĠĠĠĠĠ Ġcommand Bus . register Handler Interceptor ( Logging Interceptor (" COMMAND ")) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġcommand Bus ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġh istor ie ( kon figuration : ĠConfiguration ): ĠH istor ie Ġ= ĊĠĠĠĠĠĠĠĠ ĠE re ign is L ie fer ant ( kon figuration . event Store ()) ĊĊĠĠĠ Ġoverride Ġfun Ġserializer ( kon figuration : ĠConfiguration ): ĠSerializer ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġkon figuration . event Serializer () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġevent Store ( kon figuration : ĠConfiguration ): ĠEvent Store ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġevent Store Ġ= ĠEmbedded Event Store ( InMemory Event Storage Engine ()) ĊĠĠĠĠĠĠĠ Ġevent Store . register Dispatch Interceptor ( Event Logging Interceptor ()) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġevent Store ĊĠĠĠ Ġ} Ċ }