Example #1
0
 public static string UserName(string name, int maxStringLength = 30)
 {
     if (string.IsNullOrEmpty(name))
     {
         name = Name.LatinFirstName();
     }
     if (maxStringLength - name.Length > 3)
     {
         return(name + StaticRandom.GetNextRandomNumber(999));
     }
     return(name);
 }
Example #2
0
 public static string UserName()
 {
     return(Name.LatinFirstName() + StaticRandom.GetNextRandomNumber(999));
 }