public void Apply(SpeechTypeChangedEvent ev)
 {
     if (ev.AggregateId != Id)
     {
         throw new InvalidDomainEventException(ErrorCode.InvalidDomainEvent, $"Cannot apply event : Speech Id ({Id}) is not equals to AggregateId ({ev.AggregateId}) of the event , {nameof(SpeechTypeChangedEvent)}");
     }
     _type = new SpeechType(ev.Type.Name).IntValue;
 }
 public void Apply(SpeechTypeChangedEvent ev)
 {
     Id   = ev.AggregateId;
     Type = ev.Type;
 }