Create South African test data with NBuilder and Faker

Play this article

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: