Cohesive.Adapters.Bogus 0.1.0-alpha.99

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

Cohesive.Adapters.Bogus

Cohesive.Adapters.Bogus imports finite, coherent Bogus samples into strict GenerationCatalogDocument values. Bogus is an authoring/import dependency; it does not become part of canonical generation IR or remain necessary for interpretation, replay, provisioning, or verification.

dotnet add package Cohesive.Adapters.Bogus --prerelease
using Cohesive.Adapters.Bogus;
using Cohesive.Model;
using Cohesive.Simulation.Generation;

var options = new BogusGenerationCatalogImportOptions(
    id: "catalog/customer-profiles",
    revision: "r1",
    count: 250,
    seed: 8675309,
    sourceReferences:
    [
        SourceReference.Repository(new("tests/CustomerProfileCatalog.cs"))
    ],
    locale: "en");

GenerationCatalogDocument profiles = BogusGenerationCatalog.Import(
    options,
    faker =>
    {
        var givenName = faker.Name.FirstName();
        var familyName = faker.Name.LastName();
        return new CustomerProfile(
            givenName,
            familyName,
            faker.Internet.Email(givenName, familyName));
    });

await File.WriteAllTextAsync(
    "person-profiles.catalog.json",
    GenerationCatalogJsonSerializer.Serialize(profiles));

public sealed record CustomerProfile(string GivenName, string FamilyName, string Email);

At a script or CI boundary, cohesive-sim catalog verify --catalog person-profiles.catalog.json validates the exact retained document and emits structured identity and provenance evidence without loading Bogus.

Use the returned document through Gen.Catalog<CustomerProfile>(profiles), commonly as a SampleRecord source when multiple generated entity fields must remain correlated.

What Cohesive adds beyond Bogus

Bogus remains the source of realistic, domain-shaped sample values. This adapter turns those transient samples into a portable Cohesive generation asset that can participate in the rest of the simulation and assurance model:

  • a strict, provider-neutral GenerationCatalogDocument that can be persisted, inspected, compared, and consumed without loading Bogus;
  • exact provenance and fingerprints covering the sampled values, adapter and provider versions, locale, seed, profile, and application sources;
  • deterministic, addressable selection through Cohesive generation entropy, including replay and shrinking behavior;
  • composition with typed generators, correlated records, high-level worlds and scenarios, provisioning, JSONL artifacts, and verification workflows used by unit, script, and end-to-end tests.

Bogus alone is usually the simpler choice for a one-off fake created and consumed in one process. Use this adapter when the generated data must become a durable, reviewable, reproducible input to tests, demo environments, or agentic assurance. The finite catalog is the semantic boundary: Bogus and the callback produce it, while its materialized values and provenance—not the callback or a future provider invocation—are the retained authority.

Capability and determinism profile

BogusGenerationCatalog.CapabilityProfile is the exact retained import contract; BogusGenerationCatalog.CapabilityProfileIdentity is its stable versioned identity. The current profile:

  • materializes a finite sample with equally weighted stable entry identities;
  • creates a fresh Faker for every import and uses Randomizer(seed) rather than global Bogus random state;
  • applies one explicit locale to the complete import;
  • fixes Faker.DateTimeReference to DateTime.UnixEpoch so date providers do not read wall-clock time;
  • retains normalized capability assertions with the adapter README and exact adapter/Bogus packages as profile-level evidence;
  • records the distinct adapter and provider identities and versions, locale, local seed, and caller sources in catalog provenance.

Profile evidence and import evidence are intentionally separate. The profile sources support claims about the adapter contract; BogusGenerationCatalogImportOptions.SourceReferences identify the application callback or specification that produced this particular catalog. Both are embedded in and fingerprinted with the returned document.

Repeated values remain separate equally weighted entries, preserving their observed frequency in the finite sample.

Bogus warns that provider upgrades can change seeded output. The adapter therefore records its exact Bogus package version and immediately fingerprints the materialized values. Once retained, those values—not a claim that a future Bogus invocation will recreate them—are authoritative.

The callback is intentionally transient, but it is still application code. For reproducible imports, use only the supplied faker and deterministic application state, and include the callback's repository or specification source in sourceReferences. Network calls, DateTime.Now, Guid.NewGuid(), process-global random state, and mutable ambient services can make a repeated import differ; the resulting retained catalog remains deterministic after each import.

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. 
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
0.1.0-alpha.99 0 9/20/2026
0.1.0-alpha.98 0 9/19/2026
0.1.0-alpha.97 0 9/19/2026
0.1.0-alpha.96 36 9/19/2026
0.1.0-alpha.95 33 9/18/2026
0.1.0-alpha.94 36 9/18/2026
0.1.0-alpha.93 39 9/18/2026
0.1.0-alpha.92 34 9/18/2026
0.1.0-alpha.91 38 9/18/2026
0.1.0-alpha.90 36 9/18/2026
0.1.0-alpha.89 39 9/18/2026
0.1.0-alpha.88 36 9/18/2026
0.1.0-alpha.87 38 9/17/2026
0.1.0-alpha.86 40 9/17/2026
0.1.0-alpha.85 39 9/17/2026
0.1.0-alpha.84 35 9/17/2026
0.1.0-alpha.83 44 9/16/2026
0.1.0-alpha.82 46 9/16/2026
0.1.0-alpha.81 34 9/16/2026
0.1.0-alpha.80 66 9/8/2026
Loading failed