-1
日增长
9,752
stars
541
forks
120
watchers
243
prs
362
issues
129
releases
README
Bogus for .NET: C, F, and VB.NET
======================
Project Description
-------------------
Hello. I'm your host Brian Chavez (twitter). Bogus is a simple fake data generator for .NET languages like C, F and VB.NET. Bogus is fundamentally a C port of faker.js
and inspired by FluentValidation's syntax sugar.
Bogus will help you load databases, UI and apps with fake data for your testing needs. If you like Bogus star :star: the repository and show your friends! :smile: If you find Bogus useful consider supporting the project by purchasing a Bogus Premium license that gives you extra Bogus superpowers! :dizzy: :muscle: You can also sponsor the project here! :moneybag: :dollar:
Download & Install
Nuget Package Bogus
powershell
Install-Package Bogus
Minimum Requirements: .NET Standard 1.3 or .NET Standard 2.0 or .NET Framework 4.0.
Projects That Use Bogus
Bitwarden Passwordless Server [[code]](https://github.com/bitwarden/passwordless-server/blob/147e0ffa6e687634edcda7ac89518eab56936835/tests/Api.IntegrationTests/Helpers/User/UserHelpers.csL12-L22)
Elasticsearch .NET Client (NEST) [[code]](https://github.com/elastic/elasticsearch-net/tree/82c938893b2ff4ddca03a8e977ad14a16da712ba/src/Tests/Framework/MockData)
FluentValidation [[code]](https://github.com/FluentValidation/FluentValidation/search?q=Bogus)
Microsoft Windows-XAML / Template10 [[code]](https://github.com/Windows-XAML/Template10/blob/beed5e58a4f8ab381cff6f063d2a91db5b4fc3bc/Basics/PrismSample/Services/DataService.csL1)
Microsoft Learning / Cloud-Native Applications Using Microsoft Azure Cosmos DB [[code]](https://github.com/MicrosoftLearning/dp-420-cosmos-db-dev/blob/fdbb3811c20a601fdfda8ea04c9c7de89b8afb19/instructions/08-sdk-bulk.md)
Microsoft Office Developer
Office 365 Development Training Content [[code]](https://github.com/OfficeDev/TrainingContent/blob/0b2579517f0271f9a64f613b2046ab2821a73956/Teams/03%20Authentication/LabFiles/Starter/officedev-talent-management/DataModel/PositionCandidateData.cs)
Microsoft Teams Sample Connector [[code]](https://github.com/OfficeDev/microsoft-teams-sample-connector-csharp/blob/8805bb1acb136949905e4644c4e714dd7b70a61a/TeamsToDoAppConnector/Utils/TaskHelper.cs)
Featured In
Amazon AWS .NET Open Source Fund Recipient - Oct. 1st, 2024
Microsoft 'On .NET Live': Next-level EF Core Data Seeding with Bogus - Apr. 15th, 2024
Adventures in .NET: Building Bogus with Brian Chavez - Jan 5th, 2024
Microsoft Docs: Deploy Orleans to Azure App Service - May 5th, 2022
Microsoft Docs: Modernize a WPF app tutorial - Aug. 2nd, 2019
Microsoft Build 2018: Azure Tips and Tricks - May 8th, 2018
NuGet Must Haves: Top 10 Unit Testing Libraries in 2017
.NET Rocks Podcast: BetterKnowThatFramework - Mar. 16th 2017, Sep. 13th, 2018, and May 7th, 2020
.NET Engineering Blog: NuGet Package of the week 1. - "This week in .NET - December 8th 2015"
Blog Posts
Nick Chapsas - [Generating realistic fake data in .NET using Bogus [YouTube]](https://wTop issues
#405How to register custom `DataSet`s for scoped/local seed propagation given by `UseSeed`16 comments · 2022-01-11#55FinishWith for the whole generate set8 comments · 2017-01-23#418picsum requests are outdated5 comments · 2022-04-04#441Bogus database seeding fails on .NET 64 comments · 2022-09-08#612DateTimeReference is null3 comments · 2025-07-25#548Update `zh_CN` dataset to latest3 comments · 2024-05-11#539Add hungarian (hu) locale from faker-js3 comments · 2024-04-15#516Update Denmark (da) locale from faker-js 3 comments · 2023-12-14
Discussions
#582Seed syntetic database (E2E fwk)1 comments · 2025-02-12#564Alternative for FormatterServices.GetUninitializedObject1 comments · 2024-09-16#563How to created nested data such as XML files or JSON objects?2 comments · 2024-09-10#552"adding" onto a rule1 comments · 2024-06-05#541Applying distributions when generating collections1 comments · 2024-04-18#536how to dynamically hydrate all properties0 comments · 2024-03-16#533Export/Save/Serialize Rules0 comments · 2024-02-22#532Attributes for similar experience of xUnit, AutoFixture & Moq?1 comments · 2024-02-16
Latest release
Release v35.6.5 build 1571 v35.6.5 2025-10-26CHANGE LOG