private async Task Insert(int count) { for (var i = 0; i < count; i++) { var d = new JBDonation { Id = Guid.NewGuid(), Amount = i, Donor = "Jon", Success = true }; await _connection.AppendToStreamAsync(StreamName, d); } }
private async Task Insert(int count) { for (var i = 0; i < count; i++) { var d = new JBDonation { Id = Guid.NewGuid(), Amount = i, Donor = "Jon", Success = true }; var @event = NewEventData.Create(d); await _connection.AppendToStreamAsync(StreamName, ExpectedVersion.Any, @event); } }