Xfty.AutoBogus
1.0.0-beta.12
dotnet add package Xfty.AutoBogus --version 1.0.0-beta.12
NuGet\Install-Package Xfty.AutoBogus -Version 1.0.0-beta.12
<PackageReference Include="Xfty.AutoBogus" Version="1.0.0-beta.12" />
<PackageVersion Include="Xfty.AutoBogus" Version="1.0.0-beta.12" />
<PackageReference Include="Xfty.AutoBogus" />
paket add Xfty.AutoBogus --version 1.0.0-beta.12
#r "nuget: Xfty.AutoBogus, 1.0.0-beta.12"
#:package Xfty.AutoBogus@1.0.0-beta.12
#addin nuget:?package=Xfty.AutoBogus&version=1.0.0-beta.12&prerelease
#tool nuget:?package=Xfty.AutoBogus&version=1.0.0-beta.12&prerelease
Xfty.AutoBogus
Pairs Xfty with
AutoBogus - AutoFixture-style
auto-population, plus Bogus's realistic generators - in both directions.
Mirrors Xfty.AutoFixture
exactly, for AutoBogus instead of AutoFixture.
dotnet add package Xfty.AutoBogus
1. Point AutoBogus at a RecordProvider
using AutoBogus;
using Net.NowhereAtAll.Xfty.AutoBogus;
IAutoFaker faker = XftyAutoBogus.CreateFaker(lookup);
Contact contact = faker.Generate<Contact>();
// contact.AccountId is set - the required Account relationship was
// generated by XFTY, not left null.
Anything requested that XFTY has no Provider for is generated by AutoBogus
exactly as normal. CreateFaker defaults to InsertMode.Mock and
InsertInclusivity.Required - not RecordProvider's own default of None -
because AutoBogus users expect Generate<T>() to hand back a complete
object; both are overridable explicitly.
2. Let AutoBogus fill in what a Provider left unset
using AutoBogus;
using Net.NowhereAtAll.Xfty.AutoBogus;
Account account = (Account)await new RecordProvider(typeof(Account), lookup)
.SetInsertMode(InsertMode.Mock)
.SetUnsetFieldFiller(new AutoBogusUnsetFieldFiller(faker))
.Supply();
// account.Name/.Industry/... are exactly what the Provider declared.
// account.NumberOfEmployees, .AnnualRevenue, .Site, ... - fields the
// Master Template never mentions at all - now hold real AutoBogus values.
Unlike AutoFixture's default ThrowingRecursionBehavior, AutoBogus never
throws on a self-referencing field (Account.Parent) - it just stops
recursing past a fixed depth - so AutoBogusUnsetFieldFiller needs no
recursion-exception handling at all.
Full documentation
- Pairing with AutoBogus - both pairings in full, excluding fields
- How XFTY compares - why all three pairings (AutoFixture, Bogus, AutoBogus) exist independently
- Everything else
Xftydoes
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.12 | 48 | 9/18/2026 |
| 1.0.0-beta.11 | 59 | 9/10/2026 |
| 1.0.0-beta.10 | 52 | 9/10/2026 |
| 1.0.0-beta.9 | 48 | 9/10/2026 |
| 1.0.0-beta.8 | 55 | 9/10/2026 |
| 1.0.0-beta.7 | 56 | 9/7/2026 |
| 1.0.0-beta.6 | 64 | 9/7/2026 |
| 1.0.0-beta.5 | 64 | 9/6/2026 |
| 1.0.0-beta.3 | 65 | 9/6/2026 |
| 1.0.0-beta.2 | 62 | 9/6/2026 |
| 1.0.0-beta.1 | 70 | 9/6/2026 |