public async Task WriteSingleAppend() { var id = new StringId("test-" + Guid.NewGuid()); await this.eventstore.AppendToStream(id, 0, new IEvent[] {BigEventData.Create(id, 120), BigEventData.Create(id, 110)}); }
public async Task CanAppendEvents() { var id = new StringId("mystream"); var events = new IEvent[] { BigEventData.Create(id, 20), BigEventData.Create(id, 1024), BigEventData.Create(id, 400121), BigEventData.Create(id, 2048) }; await this.eventstore.AppendToStream(id, 0, events); await this.eventstore.AppendToStream(id, 1, events); await this.eventstore.AppendToStream(new StringId("stream2"), 0, events); }