oskardudycz / EventSourcing.NetCore

Examples and Tutorials of Event Sourcing in .NET
https://event-driven.io
Creative Commons Attribution Share Alike 4.0 International
3.42k stars 515 forks source link

CustomerIncidentsSummaryGrouper Issue in Helpdesk sample #172

Open stavris8894 opened 2 years ago

stavris8894 commented 2 years ago

There is an issue with the CustomerIncidentsSummaryGrouper: IAggregateGrouper<Guid> class.

The code:

var filteredEvents = events .Where(ev => eventTypes.Contains(ev.GetType())) .ToList();

returns an empty list.

events: {Marten.Events.Event<Helpdesk.Api.Incidents.IncidentResolved>}

eventTypes: ``

`` Seems that the Contains returns false.

stavris8894 commented 2 years ago

I have create a PR #173 that solve this issue