Exemple #1
0
 protected override string GetUnmatchMessage(string value)
 {
     return(MessageFormatHelper.Format(
                ValidationPredicateMessages.NotRegexMatchStringMessage,
                value,
                this.Pattern));
 }
Exemple #2
0
 protected override string GetUnmatchMessage(TEnum value)
 {
     return(MessageFormatHelper.Format(
                ValidationPredicateMessages.NotMemberOfEnumMessage,
                value,
                value.GetType().FullName));
 }
 protected override string GetUnmatchMessage(T value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.EqualMessage, this.Bound));
 }
Exemple #4
0
 protected override string GetMatchMessage(string value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotNullOrWhiteSpaceStringMessage, value));
 }
 protected override string GetMatchMessage(float value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotInfinityMessage, value));
 }
 protected override string GetUnmatchMessage(string value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotEqualStringMessage, value, this.Bound, this.ComparisonType));
 }
Exemple #7
0
 protected override string GetMatchMessage(double value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotNaNMessage, value));
 }
 protected override string GetUnmatchMessage(T value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.InstanceOfTypeMessage, this.type));
 }
Exemple #9
0
 protected override string GetUnmatchMessage(string value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotEmptyStringMessage, value));
 }
Exemple #10
0
 protected override string GetMatchMessage(Nullable <T> value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotNullMessage, value));
 }
Exemple #11
0
 protected override string GetMatchMessage(Guid value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.NotEmptyGuidMessage, value));
 }
 protected override string GetMatchMessage(T value)
 {
     return(MessageFormatHelper.Format(ValidationPredicateMessages.GreaterThanMessage, value, this.Bound));
 }