From 6349844b148174b7b4769feb7ddcf7964cd8bdbd Mon Sep 17 00:00:00 2001 From: Leanne Renner Date: Mon, 15 Apr 2019 13:09:36 -0500 Subject: [PATCH] Fix grammar and string concatenation in card holder details validation message --- SecureSubmit.Tests/Validation/HpsInputValidationTests.cs | 2 +- SecureSubmit/Infrastructure/Validation/HpsInputValidation.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SecureSubmit.Tests/Validation/HpsInputValidationTests.cs b/SecureSubmit.Tests/Validation/HpsInputValidationTests.cs index 004488e..007a4ae 100644 --- a/SecureSubmit.Tests/Validation/HpsInputValidationTests.cs +++ b/SecureSubmit.Tests/Validation/HpsInputValidationTests.cs @@ -549,7 +549,7 @@ public void FirstNameWithSpecialChars() #endregion - #region InvalidCardDeatails + #region InvalidCardDetails [TestMethod, ExpectedException(typeof(HpsInvalidRequestException))] public void FirstNameWithLimits() diff --git a/SecureSubmit/Infrastructure/Validation/HpsInputValidation.cs b/SecureSubmit/Infrastructure/Validation/HpsInputValidation.cs index c0515d1..cc7b3fd 100644 --- a/SecureSubmit/Infrastructure/Validation/HpsInputValidation.cs +++ b/SecureSubmit/Infrastructure/Validation/HpsInputValidation.cs @@ -96,7 +96,7 @@ public static string CardHolderDetails(string cardHolderDetail, AddressFields fi dict.Add(AddressFields.State, STATE_MAX_LENGTH); if ((!string.IsNullOrEmpty(cardHolderDetail)) && (cardHolderDetail.Length > dict[fieldName])) { - throw new HpsInvalidRequestException(HpsExceptionCodes.InvalidCardHolderDetail, "The value for " + fieldName + " should not more than" + dict[fieldName] + "characters", "cardHolderDetail"); + throw new HpsInvalidRequestException(HpsExceptionCodes.InvalidCardHolderDetail, "The value for " + fieldName + " should not be more than " + dict[fieldName] + " characters", "cardHolderDetail"); } return cardHolderDetail; }