public async Task TestWriteVersion1ToEventStore()
        {
            A.CallTo(() => _eventStoreApi.GetAggregatesAtLatestVersion(A <Guid> .That.IsEqualTo(_datasetId))).Returns(
                new List <Aggregate <Feature <LineString, ExampleAttributes> > >()
                );

            var events = new List <Event <FeatureDiff> >();

            A.CallTo(() => _eventStoreApi.SaveEvent(A <Guid> .That.IsEqualTo(_datasetId), A <Event <FeatureDiff> > ._))
            .Invokes((Guid id, Event <FeatureDiff> x) => events.Add(x));

            await _converter.UpdateDataset(_datasetId, _version1);

            Assert.AreEqual(6, events.Count());
        }
        private async Task StoreEvent(Guid datasetId, Event <FeatureDiff> @event)
        {
            await _eventStoreApi.SaveEvent(datasetId, @event);

            _messageBus.Publish(datasetId, @event);
        }