private static string GetAllMessageErrors(
            string correlationId,
            DomainNotificationUseCase notificationUseCase,
            string patternLog)
        {
            var errorsMessage = new StringBuilder();

            errorsMessage.Append($"{patternLog} Event item with {nameof(correlationId)}: {correlationId} processing failed.");

            if (notificationUseCase.HasNotifications())
            {
                notificationUseCase
                .GetNotifications()?
                .ForEach(n => n.Messages?.ToList()?.ForEach(m => errorsMessage.Append($"{n.MessageType}|{m.Key}: {m.Value};")));
            }

            return(errorsMessage.ToString());
        }