diff --git a/src/EventSourcingTests/Projections/using_explicit_code_for_live_aggregation.cs b/src/EventSourcingTests/Projections/using_explicit_code_for_live_aggregation.cs index 6cf2140834..bd28df48cb 100644 --- a/src/EventSourcingTests/Projections/using_explicit_code_for_live_aggregation.cs +++ b/src/EventSourcingTests/Projections/using_explicit_code_for_live_aggregation.cs @@ -1,15 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading; using System.Threading.Tasks; using EventSourcingTests.Aggregation; using EventSourcingTests.FetchForWriting; -using Marten; using Marten.Events; using Marten.Events.Aggregation; using Marten.Events.Projections; -using Marten.Internal.Sessions; using Marten.Testing.Harness; using Shouldly; using Xunit; @@ -31,12 +28,15 @@ public async Task using_a_custom_projection_for_live_aggregation() await theSession.SaveChangesAsync(); var aggregate = await theSession.Events.AggregateStreamAsync(streamId); + theStore.StorageFeatures.AllDocumentMappings.Select(x => x.DocumentType) + .ShouldNotContain(typeof(SimpleAggregate)); aggregate.ACount.ShouldBe(2); aggregate.BCount.ShouldBe(1); aggregate.CCount.ShouldBe(3); aggregate.Id.ShouldBe(streamId); } + [Fact] public async Task using_a_custom_projection_for_live_aggregation_with_query_session() {