Xfty.AutoFixture 1.0.0-beta.12

This is a prerelease version of Xfty.AutoFixture.
dotnet add package Xfty.AutoFixture --version 1.0.0-beta.12
                    
NuGet\Install-Package Xfty.AutoFixture -Version 1.0.0-beta.12
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xfty.AutoFixture" Version="1.0.0-beta.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xfty.AutoFixture" Version="1.0.0-beta.12" />
                    
Directory.Packages.props
<PackageReference Include="Xfty.AutoFixture" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xfty.AutoFixture --version 1.0.0-beta.12
                    
#r "nuget: Xfty.AutoFixture, 1.0.0-beta.12"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xfty.AutoFixture@1.0.0-beta.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xfty.AutoFixture&version=1.0.0-beta.12&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Xfty.AutoFixture&version=1.0.0-beta.12&prerelease
                    
Install as a Cake Tool

Xfty.AutoFixture

NuGet

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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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