public async Task can_save_aggregate() { var aggregate = new ClassifiedAd(); aggregate.Apply(AutoFixture.Create <Events.V1.ClassifiedAdCreated>()); aggregate.Apply(AutoFixture.Create <Events.V1.ClassifiedAdPublished>()); aggregate.Apply(AutoFixture.Create <Events.V1.ClassifiedAdMarkedAsSold>()); var sut = new GesAggregateStore((type, id) => id, Connection, Serializer, TypeMapper); var result = await sut.Save(aggregate); // act & assert result.NextExpectedVersion.Should().Be(2); }