Compono.Bogus 0.1.0-preview.39

This is a prerelease version of Compono.Bogus.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Compono.Bogus --version 0.1.0-preview.39
                    
NuGet\Install-Package Compono.Bogus -Version 0.1.0-preview.39
                    
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="Compono.Bogus" Version="0.1.0-preview.39" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Compono.Bogus" Version="0.1.0-preview.39" />
                    
Directory.Packages.props
<PackageReference Include="Compono.Bogus" />
                    
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 Compono.Bogus --version 0.1.0-preview.39
                    
#r "nuget: Compono.Bogus, 0.1.0-preview.39"
                    
#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 Compono.Bogus@0.1.0-preview.39
                    
#: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=Compono.Bogus&version=0.1.0-preview.39&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Compono.Bogus&version=0.1.0-preview.39&prerelease
                    
Install as a Cake Tool

Compono

A modern, source-generated test composition framework for .NET.

Compono is a modular framework for composing complete test environments in modern .NET applications.

Rather than focusing solely on object generation, Compono composes object graphs, shared dependencies, test doubles, semantic data, and reusable conventions into a single, deterministic model.

Why Compono?

Modern .NET has evolved. Compono embraces source generators, records, required members, nullable reference types, trimming, and Native AOT instead of building around runtime reflection.

The goal isn't to recreate AutoFixture. It's to rethink test composition from first principles.

Philosophy

  • Composition over object generation
  • Predictability over magic
  • Source-generated by default
  • Deterministic by design
  • Performance is a feature
  • Diagnostics are a product feature
  • Modular architecture

Tests declare what they need.

Compono determines how those requirements are satisfied.

Packages

Package Description


Compono Core composition engine with built-in source generator Compono.XunitV3 xUnit v3 integration Compono.NSubstitute Automatic NSubstitute composition Compono.Bogus Semantic fake data integration

Example

var composer = Composer.Create(builder =>
{
    builder.UseNSubstitute();
    builder.UseBogus();
});

var customer = composer.Create<Customer>();

Source Generation First

Runtime reflection is intentionally not part of the default execution model.

If compatibility support is ever introduced, it will require an explicit opt-in.

Performance

Generated construction (composer.Create<T>()) runs ~6.0x faster than an equivalent reflection-based baseline, and within ~1 ns of a bare new Leaf(), for the flat-type case Milestone 1 can measure end-to-end today. A separate ecosystem-comparison benchmark against AutoFixture is also included as a recognizable reference point - not a claim Compono replaces it. See Performance (or docs/performance.md) for methodology, caveats, and how to reproduce - benchmarks/Compono.Benchmarks.

Getting Started

New to Compono? Start at the Getting Started guide — installation, a first composed test, and curated learning paths for different starting points (new to Compono, migrating from AutoFixture, using xUnit, using NSubstitute).

Migrating from AutoFixture? See the AutoFixture migration guide.

Documentation

The full documentation site is at layeredcraft.github.io/compono. See the /docs directory for the manifesto, architecture, public API, performance, MVP roadmap, design principles, and ADRs.

Status

Compono is under active development. APIs are experimental until the first public preview.

License

MIT

Product Compatible and additional computed target framework versions.
.NET 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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • Bogus (>= 35.6.5 && < 36.0.0)
    • Compono (= 0.1.0-preview.39)
  • net11.0

    • Bogus (>= 35.6.5 && < 36.0.0)
    • Compono (= 0.1.0-preview.39)

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
0.2.0-preview.49 0 8/7/2026
0.2.0-preview.48 0 8/7/2026
0.1.1-preview.47 22 8/7/2026
0.1.0 37 8/7/2026
0.1.0-preview.46 35 8/7/2026
0.1.0-preview.45 30 8/7/2026
0.1.0-preview.44 23 8/7/2026
0.1.0-preview.43 25 8/7/2026
0.1.0-preview.42 27 8/7/2026
0.1.0-preview.41 31 8/7/2026
0.1.0-preview.40 32 8/5/2026
0.1.0-preview.39 33 8/5/2026
0.1.0-preview.38 34 8/5/2026
0.1.0-preview.37 54 8/5/2026
0.1.0-preview.36 45 8/4/2026
0.1.0-alpha.35 35 8/4/2026
0.1.0-alpha.34 44 8/3/2026
0.1.0-alpha.33 50 8/3/2026
0.1.0-alpha.31 46 8/2/2026
0.0.1-alpha.32 42 8/2/2026
Loading failed