public void Publish <T>(T[] events, string trackingId = null) where T : DomainEvent { PublishedEvents.AddRange(events); }