AutoBogus icon indicating copy to clipboard operation
AutoBogus copied to clipboard

A C# library complementing the Bogus generator by adding auto creation and population capabilities.

Results 42 AutoBogus issues
Sort by recently updated
recently updated
newest added

I've come across a performance issue when using AutoFaker to generate test objects for use in unit tests. I've been able to create a super simplified example of my domain...

It seems that the recursive depth safe mechanism doesn't work on records. Generating an instance of this record as follows ``` public record FakeChild (string Name, List? C); var child...

Unit and integration tests should generally be deterministic (see [here](https://martinfowler.com/articles/nonDeterminism.html); with the potential exception of cases where one is specifically trying to implement randomized tests as a form of exploratory...

I have an entity that looks like this in a .NET 6 project: ```csharp public class Recipe { public string Title { get; set; } public DateOnly Dob { get;...

Properties overridden in AutoGeneratorOverride classes are populated one level (depth) earlier than properties that are not overridden in an AutoGeneratorOverride. I would expect that all properties would be populated at...

When switching from .NET 5 to .NET 6, the `Generate` method takes over an order of magnitude longer, even for very simple records (e.g. `Foo(int Bar)`). | Job | Runtime...

fixes #83 This lets devs globally set the `DateTimeKind` of generated dates to, for example, more easily accommodate UTC in integration tests. If #84 is approved, I'll add this toggle...

fixes #76 tried to follow your pattern throughout and included a test for the new type. I did have to do some minor update fluent assertion updates as well. let...

## What Issue Does This Solve? As of .NET 6, [NpgSQL is more strict with date time types](https://www.npgsql.org/efcore/release-notes/6.0.html#major-changes-to-timestamp-mapping) and defaults to UTC. I think this is a good thing, but...

Can we add static non-generic counterparts for the `Generate` methods that accept a `Type` to the `AutoFaker` class?