internal static async Task AppendEvent(this EventStoreRunningInDocker eventStoreRunningInDocker,
                                        string streamId,
                                        object @event)
 {
     await AppendEventsToStream(eventStoreRunningInDocker.Connection, streamId, new List <object> {
         @event
     });
 }
        internal static async Task AppendRandomEvents(this EventStoreRunningInDocker eventStoreRunningInDocker,
                                                      string streamId,
                                                      int numberOfEvents)
        {
            var events = Enumerable.Range(0, numberOfEvents).Select(s => (object)new RandomEvent()).ToList();

            await AppendEventsToStream(eventStoreRunningInDocker.Connection, streamId, events);
        }