public Error Create(string errorCode, KeyValuePair <string, object> errorTargetAndMessage) { return(_errorFromKeyValuePairFactory.Create(errorCode, errorTargetAndMessage)); }
public IEnumerable <Error> Create(string errorCode, Dictionary <string, object> details) { return(details .Select(detail => _errorFromKeyValuePairFactory.Create(errorCode, detail))); }