From 69f1e318d40c4c7520bf58e31c251af9c53e5a8d Mon Sep 17 00:00:00 2001 From: Anne Erdtsieck Date: Wed, 6 Nov 2024 11:51:47 +0100 Subject: [PATCH] Explicit live aggregation should not create tables --- .../Projections/using_explicit_code_for_live_aggregation.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {