private static List <IValidationMessage> Required(FieldInfoLong aFieldInfo, IRuleDetail aRuleDetail)
        {
            var Messages = new List <IValidationMessage>();

            if (aFieldInfo.FieldValue == null)
            {
                Messages.Add(new ValidationMessage()
                {
                    ErrorMessage = aRuleDetail.Message.Replace("{FieldName}", aFieldInfo.FieldName),
                    FieldName    = aFieldInfo.FieldName
                });
            }
            ;

            return(Messages);
        }
        private static List <IValidationMessage> Equal(FieldInfoLong aFieldInfo, int equalValue, IRuleDetail aRuleDetail)
        {
            var Messages = new List <IValidationMessage>();

            if (aFieldInfo.FieldValue == null || aFieldInfo.FieldValue != equalValue)
            {
                Messages.Add(new ValidationMessage()
                {
                    ErrorMessage = aRuleDetail.Message.Replace("{FieldName}", aFieldInfo.FieldName)
                                   .Replace("{FieldCriteria}", equalValue.ToString())
                    ,
                    FieldName = aFieldInfo.FieldName
                });
            }

            return(Messages);
        }
        private static List <IValidationMessage> Range(FieldInfoLong aFieldInfo, int rangeFrom, int rangeTo, IRuleDetail aRuleDetail)
        {
            var Messages = new List <IValidationMessage>();



            if (aFieldInfo.FieldValue == null ||
                (aFieldInfo.FieldValue >= rangeFrom && aFieldInfo.FieldValue <= rangeTo) == false
                )
            {
                Messages.Add(new ValidationMessage()
                {
                    ErrorMessage = aRuleDetail.Message.Replace("{FieldName}", aFieldInfo.FieldName)
                                   .Replace("{RangeFrom}", rangeFrom.ToString())
                                   .Replace("{RangeTo}", rangeTo.ToString())
                    ,
                    FieldName = aFieldInfo.FieldName
                });
            }

            return(Messages);
        }