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); }
public static string UserName() { return(Name.LatinFirstName() + StaticRandom.GetNextRandomNumber(999)); }