ActiveLogin / ActiveLogin.Identity

Parsing and validation of Swedish identities such as Personal Identity Number (svenskt personnummer) in .NET.
https://activelogin.net
MIT License
56 stars 9 forks source link

Create package with extensions for adding Testdata to Bogus #125

Open PeterOrneholm opened 4 years ago

PeterOrneholm commented 4 years ago

Is your feature request related to a problem? Please describe. Bogus is a great way to generate fake data in .NET: https://github.com/bchavez/Bogus

It has support for "randomizing" national identity numbers for US, Norway, Finland etc. but lacks support for Swedish personal identity numbers. You should not randomize this, but rather use test numbers that we provide in our TestData-package.

What area is it related to

Describe the solution you'd like If we create a small adapter that maps our testdata-package to the Bogus "API" (using extensions to the Person object) it would be easier to use.

viktorvan commented 4 years ago

Is this just for use with Bogus, or can I use just this new package without having to take a dependency on the rest of Bogus? If I am only interested in generating Swedish Identity Numbers, so to speak.

PeterOrneholm commented 4 years ago

Is this just for use with Bogus, or can I use just this new package without having to take a dependency on the rest of Bogus?

I'm open for discussion, but I'd say that the puropse of it should be to use it from Bogus. If you want to generate Swedish Identity Numbers without Bogus, you can use our TestData package only.