public static string GetSentence()
 {
     return(TextData.GetSentences(1));
 }
 public static string GetAlphabetical(int length)
 {
     return(TextData.GetSubString(length, "abcdefghijkmnopqrstuvwxyz"));
 }
        public static string GetPatternString(string pattern)
        {
            string str = Regex.Replace(pattern, "[#\\?]", (Match m) => (m.ToString() == "#" ? TextData.GetNumeric(1) : TextData.GetAlphabetical(1)));

            return(str);
        }
 public static string GetNumeric(int length)
 {
     return(TextData.GetSubString(length, "0123456789"));
 }
 public static string GetAlphaNumeric(int length)
 {
     return(TextData.GetSubString(length, "0123456789abcdefghijkmnopqrstuvwxyz"));
 }
Exemple #6
0
 public static string GetZipCode()
 {
     return(TextData.GetNumeric(5));
 }
Exemple #7
0
 public static string GetPostCode()
 {
     return(TextData.GetPatternString("??## #??").ToUpper());
 }