Xfty.AutoFixture
1.0.0-beta.12
dotnet add package Xfty.AutoFixture --version 1.0.0-beta.12
NuGet\Install-Package Xfty.AutoFixture -Version 1.0.0-beta.12
<PackageReference Include="Xfty.AutoFixture" Version="1.0.0-beta.12" />
<PackageVersion Include="Xfty.AutoFixture" Version="1.0.0-beta.12" />
<PackageReference Include="Xfty.AutoFixture" />
paket add Xfty.AutoFixture --version 1.0.0-beta.12
#r "nuget: Xfty.AutoFixture, 1.0.0-beta.12"
#:package Xfty.AutoFixture@1.0.0-beta.12
#addin nuget:?package=Xfty.AutoFixture&version=1.0.0-beta.12&prerelease
#tool nuget:?package=Xfty.AutoFixture&version=1.0.0-beta.12&prerelease
Xfty.AutoFixture
Pairs Xfty with
AutoFixture, in both
directions - core Xfty has no dependency on AutoFixture, and never will.
dotnet add package Xfty.AutoFixture
1. Point AutoFixture at a RecordProvider
fixture.Create<T>() normally knows nothing about XFTY's relationships,
shared ancestors, or cycle guards. XftyCustomization intercepts requests
for any type with a Provider registered in your IProviderLookup and
answers them with a real, fully-formed XFTY-generated record instead:
using AutoFixture;
using Net.NowhereAtAll.Xfty.AutoFixture;
IFixture fixture = new Fixture()
.Customize(new XftyCustomization(lookup));
Contact contact = fixture.Create<Contact>();
// contact.AccountId is set - the required Account relationship was
// generated by XFTY, not left null.
Anything requested that XFTY has no Provider for falls straight through to AutoFixture's normal generation.
2. Let AutoFixture fill in what a Provider left unset
The inverse pairing: generate a record the normal XFTY way, and hand AutoFixture only the fields nothing touched.
using AutoFixture;
using Net.NowhereAtAll.Xfty.AutoFixture;
IFixture fixture = new Fixture();
Account account = (Account)await new RecordProvider(typeof(Account), lookup)
.SetInsertMode(InsertMode.Mock)
.SetUnsetFieldFiller(new AutoFixtureUnsetFieldFiller(fixture))
.Supply();
// account.Name/.Industry/... are exactly what the Provider declared.
// account.NumberOfEmployees, .AnnualRevenue, ... - fields the Master
// Template never mentions - now hold real AutoFixture values instead of null.
Nothing stops one fixture from doing both jobs at once.
Full documentation
- Pairing with AutoFixture - both pairings in full, excluding fields, recursion handling
- How XFTY compares - why this pairing exists at all
- 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. |
-
.NETStandard 2.0
- AutoFixture (>= 4.18.1)
- Xfty (>= 1.0.0-beta.12)
-
net10.0
- AutoFixture (>= 4.18.1)
- Xfty (>= 1.0.0-beta.12)
-
net8.0
- AutoFixture (>= 4.18.1)
- Xfty (>= 1.0.0-beta.12)
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 | 51 | 9/18/2026 |
| 1.0.0-beta.11 | 61 | 9/10/2026 |
| 1.0.0-beta.10 | 54 | 9/10/2026 |
| 1.0.0-beta.9 | 51 | 9/10/2026 |
| 1.0.0-beta.8 | 64 | 9/10/2026 |
| 1.0.0-beta.7 | 59 | 9/7/2026 |
| 1.0.0-beta.6 | 58 | 9/7/2026 |
| 1.0.0-beta.5 | 63 | 9/6/2026 |
| 1.0.0-beta.3 | 78 | 9/6/2026 |
| 1.0.0-beta.2 | 65 | 9/6/2026 |
| 1.0.0-beta.1 | 71 | 9/6/2026 |