Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save robinvanderknaap/23102d04877f60f2b73dc98113e2ae75 to your computer and use it in GitHub Desktop.

Select an option

Save robinvanderknaap/23102d04877f60f2b73dc98113e2ae75 to your computer and use it in GitHub Desktop.
public class CompanySource : DatasourceBase<String>
{
private readonly Random _random = new Random(1337);
public override string Next(IGenerationContext context)
{
return Companies[_random.Next(0, Companies.Length)];
}
private static readonly string[] Companies = new[]{
"Acme, inc.",
"Widget Corp",
"123 Warehousing",
"Demo Company",
"Smith and Co.",
"Foo Bars",
"ABC Telecom",
"Fake Brothers",
"QWERTY Logistics",
"Demo, inc.",
"Sample Company",
"Sample, inc",
"Acme Corp",
"Allied Biscuit",
"Ankh-Sto Associates",
"Extensive Enterprise",
"Galaxy Corp",
"Globo-Chem",
"Mr. Sparkle",
"Moes Tavern",
"Central Perk",
"Chasers"
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment