dotnet-testing-bogus-fake-data

Generate realistic .NET test data with the Bogus library.

28|4|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-bogus-fake-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-testing-bogus-fake-data
Source: https://github.com/kevintsengtw/dotnet-testing-agent-skills/tree/main/skills/dotnet-testing-bogus-fake-data
Command: npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-bogus-fake-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides realistic, ready-to-use test data for .NET applications by leveraging the Bogus library, enabling developers to quickly seed databases, prototype user interfaces, and run robust tests without crafting data manually.

Core Features & Use Cases

  • Realistic multi-type data generation: names, addresses, emails, companies, and more.
  • Seedable and repeatable results for consistent tests across runs.
  • Locale support and diverse data patterns suitable for unit, integration, and UI prototype testing.

Quick Start

Install Bogus into your project and start generating data using Faker<T>. Create a Faker<T> for your model, define RuleFor mappings, and call Generate to produce one or more records. Example: dotnet add package Bogus; var faker = new Faker<Person>().RuleFor(p => p.Name, f => f.Person.FullName); var people = faker.Generate(10);

Frequently Asked Questions about dotnet-testing-bogus-fake-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate realistic test data for .NET unit tests?

You generate realistic .NET test data by creating a Faker<T> for your model, mapping properties with RuleFor, and calling Generate to produce records. This requires the Bogus NuGet package to populate names, addresses, and emails.

What is the best way to create seed data for a .NET database?

Using the Bogus library with Faker<T> is an effective way to create .NET database seed data. You define RuleFor mappings to generate realistic names and addresses in batches, ensuring scalable and consistent database seeding.

Can I generate fake data in multiple languages for .NET applications?

Yes, you can generate multi-language fake data for .NET apps using the Bogus library. It provides locale support to produce diverse data patterns, making it suitable for varied integration testing and UI prototyping contexts.

How do I ensure my generated test data is repeatable across multiple runs?

You ensure generated test data is repeatable across runs by using the seeding feature in the Bogus library. Seeding Faker<T> allows you to produce deterministic, consistent data for reliable unit and integration testing.

Do I need to install any specific packages to generate fake data in C#?

Yes, you need to install the Bogus NuGet package to generate fake data in C#. It provides the Faker<T> class and RuleFor mappings required to populate your .NET models with realistic test data.