T IEventStore<T>.Get(Guid id)
            {
                var entity = ((IEventStore<T>)this).Find(id);
                if (EventStoreStub.Equals(entity, default(T)))
                    throw new EntityNotFoundException(id, "Test");

                return entity;
            }
        public EventSourcingTestHelper()
        {
            this.Events = new List<IVersionedEvent>();
            this.store =
                new EventStoreStub((eventSourced, correlationId, dateTime) =>
            {
                if (this.expectedCorrelationId != null)
                    Assert.Equal(this.expectedCorrelationId, correlationId);

                this.Events.AddRange(eventSourced.Events);
            });
        }