You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to generate a new Company Name using "az" as local and you will get an out of array range exception. if it doesn't happen first, try to generate 200 companies.
Works:
var FakeCompanies = new Faker<Company>().RuleFor(o => o.LegalName, f => f.Company.CompanyName());
Doesn't work:
var FakeCompanies = new Faker<Company>("az").RuleFor(o => o.LegalName, f => f.Company.CompanyName());
The text was updated successfully, but these errors were encountered:
Or, submit a PR with company suffixes for the az locale in data_extend (do not change the automatically generated az.locale.json file directly, changes get over-written when we import from faker.js, so please add your locale extension of suffixes in data_extend).
Or, use the following as a work-around:
var f = new Faker("az");
var randomCompanyName = f.Company.CompanyName(f.Random.Number(1,2))
f.Company.CompanyName(0) is what actually causes the problem which requires a company suffix.
Try to generate a new Company Name using "az" as local and you will get an out of array range exception. if it doesn't happen first, try to generate 200 companies.
Works:
Doesn't work:
The text was updated successfully, but these errors were encountered: