Ejemplo n.º 1
0
        private string InvalidateValidationResponse <TResponse>(IList <ValidationResponse> validationResponses, TResponse response) where TResponse : ResponseSimple, new()
        {
            //TODO: JRJ: Once our UserMessageLogViewer has hyperlink with detail, we should change this line so we format the message and use detail for the real exception.
            var errorMessage = _responseFormatter.FormatResponse(response);

            validationResponses.Add(ValidationResponse.Invalidate(response.Reason, errorMessage));
            return(errorMessage);
        }