/// <summary> /// Gets a random zip code. /// </summary> /// <returns>The random zip code.</returns> public static string ZipCode() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.ZipCode)).Random().Numerify()); }
/// <summary> /// Gets a random building number. /// </summary> /// <returns>The building number.</returns> public static string BuildingNumber() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.BuildingNumber)).Random().Numerify()); }
/// <summary> /// Gets a random time zone. /// </summary> /// <returns>The time zone.</returns> public static string TimeZone() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.TimeZone)).Random()); }
/// <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> /// Gets a random street address. /// </summary> /// <param name="includeSecondaryAddress"> /// if set to <see langword="true" /> include secondary address. /// </param> /// <returns>A random street address.</returns> public static string StreetAddress(bool includeSecondaryAddress) { return(includeSecondaryAddress ? ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.StreetAddressSecondaryFormat)).Random().Transform(true) : ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.StreetAddressFormat)).Random().Transform(true)); }
/// <summary> /// Gets a random country code. /// </summary> /// <returns>The random country code.</returns> public static string CountryCode() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.CountryCode)).Random()); }
public void SetUp() { System.Threading.Thread.CurrentThread.CurrentUICulture = defaultUICulture; ResourceCollectionCacher.Clear(); }
/// <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()); }
/// <summary> /// Gets a random application version. /// </summary> /// <returns>The version.</returns> public static string Version() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.App.VersionFormat)).Random().Numerify()); }
/// <summary> /// Generates a random free email address. /// </summary> /// <returns>The random free email address.</returns> public static string FreeEmail() { return("{0}@{1}".FormatCulture(UserName(), ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Internet.FreeMail)).Random())); }
/// <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 National insurance number. /// </summary> /// <returns>A random National insurance number</returns> public static string NationalInsuranceNumber() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Business.NationalInsuranceNumbers)).Random()); }
/// <summary> /// Creates a random first name. /// </summary> /// <returns>The randomly created first name.</returns> public static string First() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Name.First)).Random()); }
/// <summary> /// Generates a random Beer Style /// </summary> /// <returns>The random beer style.</returns> public static string Style() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Beer.Style)).Random()); }
/// <summary> /// Gets a random city. /// </summary> /// <returns>The random city.</returns> public static string City() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.CityFormat)).Random().Transform(true)); }
/// <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())); }
/// <summary> /// Gets a random city suffix. /// </summary> /// <returns>The city suffix.</returns> public static string CitySuffix() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.CitySuffix)).Random()); }
/// <summary> /// Gets a random secondary address. /// </summary> /// <returns>A random secondary address.</returns> public static string SecondaryAddress() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.SecondaryAddress)).Random().Numerify()); }
/// <summary> /// Gets the default country. /// </summary> /// <returns>The default country.</returns> public static string DefaultCountry() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.DefaultCountry)).Random()); }
/// <summary> /// Gets a random state abbreviation. /// </summary> /// <returns>The state abbreviation.</returns> /// <remarks> /// <note>If the selected Culture doesn't have states, this will output a Random Country /// Abbreviation instead.</note> /// </remarks> public static string StateAbbreviation() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Address.StateAbbr)).Random()); }
/// <summary> /// Generates a random Credit card number. /// </summary> /// <returns>A random Credit card number</returns> public static string CreditCardNumber() { return(ResourceCollectionCacher.GetArray(PropertyHelper.GetProperty(() => Resources.Business.CreditCardNumbers)).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)); }