public async Task ValidateAsync(Guid ticketId, TicketDeliveryType deliveryType) { if (deliveryType != TicketDeliveryType.Email) { throw new NotSupportedException( $"The delivery type {deliveryType} is not yet supported!"); } if (!await _ticketsRepo.ExistsAsync(ticketId)) { throw new TicketNotFoundException(); } }