Skip to content

Commit

Permalink
Explicit live aggregation should not create tables
Browse files Browse the repository at this point in the history
  • Loading branch information
erdtsieck committed Nov 6, 2024
1 parent ec53e96 commit 69f1e31
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -31,12 +28,15 @@ public async Task using_a_custom_projection_for_live_aggregation()
await theSession.SaveChangesAsync();

var aggregate = await theSession.Events.AggregateStreamAsync<SimpleAggregate>(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()
{
Expand Down

0 comments on commit 69f1e31

Please sign in to comment.