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