protected override string GenerateValue()
        {
            var result = Constraints[ConstraintTypes.Regex] != null
                ? RandomValueGenerator.GenerateString(Constraints[ConstraintTypes.Regex])
                : RandomValueGenerator.GenerateString((int)Constraints[ConstraintTypes.MinLength],
                                                      (int)Constraints[ConstraintTypes.MaxLength]);

            return(Constraints[ConstraintTypes.Encoding] != null
                ? _encodingConverter[Constraints[ConstraintTypes.Encoding]].GetString(Encoding.Default.GetBytes(result))
                : result);
        }