示例#1
0
 public void StringFakerTest()
 {
     DisplayAndExecute(new Expression <Func <string> >[] {
         () => StringFaker.Alpha(5),
         () => StringFaker.AlphaNumeric(5),
         () => StringFaker.Numeric(5),
         () => StringFaker.Randomize("### ??"),
     });
 }
示例#2
0
 public static string Phone()
 {
     return(StringFaker.Randomize("###-###-#####"));
 }
示例#3
0
 public static string InternationalPhone()
 {
     return(StringFaker.Randomize("+##-(0)####-####-####"));
 }
示例#4
0
 public static string PostCode()
 {
     return(StringFaker.Randomize("????? ##").ToUpper());
 }