Exemple #1
0
 /// <summary>
 ///   Gets the name of a random application.
 /// </summary>
 /// <returns>The name.</returns>
 public static string Name()
 {
     return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.App.Name)).Random());
 }
Exemple #2
0
 /// <summary>
 ///   Gets a random application author.
 /// </summary>
 /// <returns>The Author.</returns>
 public static string Author()
 {
     return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.App.Author)).Random().Transform(true));
 }
 /// <summary>
 ///   Generates a random Company suffix.
 /// </summary>
 /// <returns>The random company suffix.</returns>
 public static string Suffix()
 {
     return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Company.Suffix)).Random());
 }
 /// <summary>
 ///   Generates a random Company name
 /// </summary>
 /// <returns>The random company name.</returns>
 public static string Name()
 {
     return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Company.NameFormats)).Random().Transform(true));
 }
 /// <summary>
 ///   Generates a random free email address.
 /// </summary>
 /// <returns>The random free email address.</returns>
 /// <example>
 ///   <code language="cs">
 /// var email = Faker.Internet.FreeEmail();
 ///
 /// Console.WriteLine("Result = " + email);
 /// // Result = [email protected]
 ///   </code>
 /// </example>
 public static string FreeEmail()
 {
     return("{0}@{1}".FormatCulture(UserName(), ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Internet.FreeMail)).Random()));
 }
 /// <summary>
 ///   Generates a random phone number with a random pattern.
 /// </summary>
 /// <returns>The generated phone number.</returns>
 /// <seealso cref="Number(string)" />
 public static string Number()
 {
     return(Number(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Phone.Formats)).Random()));
 }