Skip to main content

Command Palette

Search for a command to run...

Create South African test data with NBuilder and Faker

Updated
1 min read
Create South African test data with NBuilder and Faker

I’ve recently read an excellent article by Jerrie Pelser about using NBuilder and Faker.Net to generate test data for your .Net project – something I actually need on a regular basis.

However, I needed data that looked a bit more South African so, I’ve added some South African flavour to Faker.Net. You can now generate South African names, surnames, provinces and actual valid ID numbers for use as test data in your project.

In the following example I generate 100 client records with random South African names, surnames, provinces and ID numbers:

You can get the code on Github.

Resources used for this article:

More from this blog

M

Mythical Man Moth

80 posts

Hi, I’m Pieter van der Westhuizen. I'm a professional freelance web & mobile developer from South Africa that has been code slinging for more than 23 years. https://youtube.com/shorts/aCCKAnDNrzM