public void RemoveDomainEvent(DomainEvent @event) => _events?.Remove(@event);
 public void AddDomainEvent(DomainEvent @event)
 {
     _events ??= new List <DomainEvent>();
     _events.Add(@event);
 }