GithubHelp home page GithubHelp logo

pdevito3 / autobogus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickdodd79/autobogus

5.0 1.0 3.0 323 KB

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

License: MIT License

C# 100.00%

autobogus's Introduction

Note This is a fork of AutoBogus by @nickdodd79 to introduce some critical missing features around .NET 6. This was created due to inactivity by Nick, but I'm hoping he comes back to continue supporting the library at some point. It is listed as AutobogusLifesupport on nuget. See below for the modified options

.NET 6 support

This library has been updated to include .NET 6, an updated version of Bogus and auto fakers for DateOnly and TimeOnly structs introduced in .NET 6.

Global WithDateTimeKind configuration

Gloablly configure your date time using one of the DateTimeKind types.

// Configure globally
AutoFaker.Configure(builder =>
{
  builder
    .WithLocale()         	// Configures the locale to use
    .WithDateTimeKind()     // Configures the DateTimeKind to use when generating date and time values. Defaults to `DateTimeKind.Local`.
    .WithRepeatCount()    	// Configures the number of items in a collection
    .WithDataTableRowCount()	// Configures the number of data table rows to generate
    .WithRecursiveDepth() 	// Configures how deep nested types should recurse
    .WithTreeDepth()		// Configures the tree depth of an object graph
    .WithBinder()         	// Configures the binder to use
    .WithFakerHub()       	// Configures a Bogus.Faker instance to be used - instead of a default instance
    .WithSkip()           	// Configures members to be skipped for a type
    .WithOverride();      	// Configures the generator overrides to use - can be called multiple times
});

autobogus's People

Contributors

ian1971 avatar jtone123 avatar logiclrd avatar nickathone avatar nickdodd79 avatar pdevito3 avatar petermcneely avatar rccampbe avatar simoncropp avatar stiankroknes avatar tvdias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.