AutoBuilderCore 1.1.2

AutoBuilder for .Net Core

AutoBuilder is a .Net Core library that makes easy creation of objects graphs filled of data. It is a tool for building unit tests arranges.

Install-Package AutoBuilderCore -Version 1.1.2
dotnet add package AutoBuilderCore --version 1.1.2
<PackageReference Include="AutoBuilderCore" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AutoBuilderCore --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

AutoBuilderCore

AutoBuilder is a .Net Core library that makes easy creation of objects graphs filled of data.
It is a tool for building unit tests arranges.

Usage

using AutoBuilder;
// ...
var builder = new Builder<MyModel>()
    .WithStringsMaxSized(50)           // strings with max size of 50
    .WithStringsAlphabet("abcdef...")  // strings using only those specific characters
    .WithMinNumberValueOf(1)           // numbers with min value of 1
    .WithMaxNumberValueOf(10);         // numbers with max value of 10

var myClassInstance = builder.Build(); // model instance generated respecting the config above

Features

  1. Build a full graph of a class with properties filled
  2. String size
  3. Specific string alphabet
  4. Number range
  5. Circular reference protection
  6. Collection support
  7. Enum support

Supported Types

  1. User defined types
  2. string (propertyname + GUID)
  3. int, short, long, char, byte (random numbers)
  4. float, double, decimal (random float numbers)
  5. Nullable
  6. bool
  7. DateTime
  8. IEnumerable<T>, IList<T>, List<T>, Array
  9. Enums

AutoBuilderCore

AutoBuilder is a .Net Core library that makes easy creation of objects graphs filled of data.
It is a tool for building unit tests arranges.

Usage

using AutoBuilder;
// ...
var builder = new Builder<MyModel>()
    .WithStringsMaxSized(50)           // strings with max size of 50
    .WithStringsAlphabet("abcdef...")  // strings using only those specific characters
    .WithMinNumberValueOf(1)           // numbers with min value of 1
    .WithMaxNumberValueOf(10);         // numbers with max value of 10

var myClassInstance = builder.Build(); // model instance generated respecting the config above

Features

  1. Build a full graph of a class with properties filled
  2. String size
  3. Specific string alphabet
  4. Number range
  5. Circular reference protection
  6. Collection support
  7. Enum support

Supported Types

  1. User defined types
  2. string (propertyname + GUID)
  3. int, short, long, char, byte (random numbers)
  4. float, double, decimal (random float numbers)
  5. Nullable
  6. bool
  7. DateTime
  8. IEnumerable<T>, IList<T>, List<T>, Array
  9. Enums

Version History

Version Downloads Last updated
1.1.2 123 11/12/2018
1.1.1 99 11/12/2018
1.1.0 86 11/10/2018
1.0.3 419 12/2/2016
1.0.2 229 11/11/2016
1.0.1 231 11/1/2016
1.0.0 226 10/31/2016