public function setUp()
 {
     $this->eventBus = new TraceableEventBus(new SimpleEventBus());
     $this->eventBus->trace();
     $this->httpClient = $this->getMock(HttpClient::class);
     $this->enricher = new EventCdbXmlEnricher($this->eventBus, $this->httpClient);
 }
 public function setUp()
 {
     $this->eventStore = new TraceableEventStore(new InMemoryEventStore());
     $this->eventStore->trace();
     $this->eventBus = new TraceableEventBus(new SimpleEventBus());
     $this->eventBus->trace();
     $this->eventStreamDecorator = new TraceableEventStoreDecorator();
     $this->eventStreamDecorator->trace();
     $this->repository = $this->createEventSourcingRepository($this->eventStore, $this->eventBus, array($this->eventStreamDecorator));
 }