Ejemplo n.º 1
0
 public bool IsMatch(GovTalkMessageGovTalkDetailsError error)
 {
     if (error.Number.Equals("1046"))
         return true;
     else
         return false;
 }
Ejemplo n.º 2
0
 public bool IsMatch(GovTalkMessageGovTalkDetailsError error)
 {
     return error.Number.Equals("1020") == true? true: false;
 }
Ejemplo n.º 3
0
 public string ErrorResponse(GovTalkMessageGovTalkDetailsError error)
 {
     return error.Text[0];
 }
        public string CalculateErrorReturn(GovTalkMessageGovTalkDetailsError error)
        {
            return _errorRules.First(e => e.IsMatch(error)).ErrorResponse(error);

            // @TODO: Handle situation where no rule is matched, or there is no errorResponse class
        }