private static Severity GetSeverity(FluentValidation.Severity severity)
        {
            switch (severity)
            {
            case FluentValidation.Severity.Error: return(Severity.Error);

            case FluentValidation.Severity.Warning: return(Severity.Warning);

            case FluentValidation.Severity.Info: return(Severity.Info);

            default: return(Severity.Error);
            }
        }
Esempio n. 2
0
        private string GetSeverityName(FluentValidation.Severity severity)
        {
            switch (severity)
            {
            case FluentValidation.Severity.Error:
                return("Fehler");

            case FluentValidation.Severity.Warning:
                return("Warnung");

            case FluentValidation.Severity.Info:
                return("Information");

            default:
                return(severity.ToString());
            }
        }