public void adding_filter_for_another_aggregate_type() { var projection = new SingleStreamAggregation <MyAggregate>(); projection.ProjectEvent <AEvent>(a => { }); projection.FilterIncomingEventsOnStreamType(typeof(OtherAggregate)); projection.AssembleAndAssertValidity(); using var store = DocumentStore.For(ConnectionSource.ConnectionString); var filters = projection.BuildFilters(store); var filter = filters.OfType <AggregateTypeFilter>().Single(); filter.AggregateType.ShouldBe(typeof(OtherAggregate)); }