ActiveLogin.Identity icon indicating copy to clipboard operation
ActiveLogin.Identity copied to clipboard

Create package with extensions for adding Testdata to Bogus

Open PeterOrneholm opened this issue 6 years ago • 2 comments

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

  • PersonalIdentityNumber
  • CoordinationNumber

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.

PeterOrneholm avatar Feb 04 '20 18:02 PeterOrneholm

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.

viktorvan avatar Feb 04 '20 18:02 viktorvan

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.

PeterOrneholm avatar Feb 05 '20 07:02 PeterOrneholm