コード例 #1
0
 public bool IsMatch(GovTalkMessageGovTalkDetailsError error)
 {
     if (error.Number.Equals("1046"))
         return true;
     else
         return false;
 }
コード例 #2
0
 public bool IsMatch(GovTalkMessageGovTalkDetailsError error)
 {
     return error.Number.Equals("1020") == true? true: false;
 }
コード例 #3
0
 public string ErrorResponse(GovTalkMessageGovTalkDetailsError error)
 {
     return error.Text[0];
 }
コード例 #4
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
        }