Quantcast
Channel: Brian McKeiver's Blog | Kentico | Kontent.ai | .NET & Azure
Viewing all articles
Browse latest Browse all 320

Generate Realistic Test Data in Kentico

$
0
0

Recently I wanted to play around with some user specific scenarios in my Kentico instance for a presentation that I was working on. To do that I needed a Kentico 9 instance with a lot of various users, user settings, and role associations already setup. After firing up a few instances of Visual Studio and running locally, I realized that I didn't have any good sandboxes to play in. So I bit the bullet, and started down the path of automating the creation of a few hundred users.

I figured that there was no way it would take more than just a few minutes to do this task. It’s just creating a few users in Kentico which is like 4 or 5 lines of code in a for loop, right? As it turns out, there is a good way to do this, and then an even better way to do it using some freely available NuGet packages.

Keep reading after the jump to see some sample code that will make generating realistic test data in Kentico a breeze.


Viewing all articles
Browse latest Browse all 320

Trending Articles