rimutec / faker Goto Github PK
View Code? Open in Web Editor NEW.NET Library to easily generate fake, yet realistically looking data for testing and other uses, supports 51 built-in and custom locales.
License: MIT License
.NET Library to easily generate fake, yet realistically looking data for testing and other uses, supports 51 built-in and custom locales.
License: MIT License
The resulting ZIP code is always 5 characters, and the last two characters are '#'.
Please find attached a test file which can be integrated (added) to the test solutions and is ready to run, where (nearly) all methods for data generation are called for each supported locale (according to the documentation).
The tests demonstrates where exceptions are happing and unfortunatly there are a lot :-(.
Please don't see this with any anger. I really like and appreciate your effort and the package!
Describe the bug
Using RimuTec.Faker.Name.LastName()
with locale "pl" throws an exception with the following message:
"(Line: 48, Col: 5, Idx: 29115) - (Line: 48, Col: 9, Idx: 29119): Duplicate key"
To Reproduce
Config.Locale = "pl";
RimuTec.Faker.Name.LastName();
Expected behavior
A last name will be generated instead of the thrown exception.
Additional context
Add any other context about the problem here.
Describe the bug
RimuTec.Faker.Address.StreetAddress()
throws an exception when the Locale is set to "ru".
To Reproduce
Config.Locale = "ru";
)RimuTec.Faker.Address.StreetAddress();
Expected behavior
A street address would be returned, but an exception is thrown.
Additional context
I made the following changes to get it working at the GeneratorBase.cs file:
Line 83
Changed from
return Fetch(fakerNode[locatorParts[0]], locatorParts.Skip(1).ToArray());
To
return Fetch(fakerNode[locatorParts[0].ToLowerInvariant()], locatorParts.Skip(1).ToArray());
Line 98
Changed from
return Fetch(fakerNode[locatorParts[0]], locatorParts.Skip(1).ToArray());
To
return Fetch(fakerNode[locatorParts[0].ToLowerInvariant()], locatorParts.Skip(1).ToArray());
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.