You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public IEnumerable<IEvent> Get<T>(Guid aggregateId, int fromVersion)
{
return Events.Where(x => x.Version > fromVersion);
}
Is it voluntary that the x.Id == aggregateId is omitted in the event storage test component / Get method ? It causes an EventsOutOfOrderException due to the fact that I initialize a test with 2 events in the Given() method, targeting 2 different aggregates.
Updating the method to the following corrected the issue:
public IEnumerable<IEvent> Get<T>(Guid aggregateId, int fromVersion)
{
return Events.Where(x => x.Version > fromVersion && x.Id == aggregateId);
}
The text was updated successfully, but these errors were encountered:
Is it voluntary that the x.Id == aggregateId is omitted in the event storage test component / Get method ? It causes an EventsOutOfOrderException due to the fact that I initialize a test with 2 events in the Given() method, targeting 2 different aggregates.
Updating the method to the following corrected the issue:
The text was updated successfully, but these errors were encountered: