In one of my aggregates I was applying by incident and entiyEvent twice on the same agregate root. When applying I applied the event twice with the same entityId. This should cause an exception because my entities within this aggregate aren't unique anymore now.
So there should be implemented an exception for applying two entities with the same id on one aggragate instance. So the entities will have unique id's within the aggregate.
In one of my aggregates I was applying by incident and entiyEvent twice on the same agregate root. When applying I applied the event twice with the same entityId. This should cause an exception because my entities within this aggregate aren't unique anymore now.
So there should be implemented an exception for applying two entities with the same id on one aggragate instance. So the entities will have unique id's within the aggregate.