AutoBuilderCore 1.1.2

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.2 176 11/12/2018
1.1.1 137 11/12/2018
1.1.0 118 11/10/2018
1.0.3 462 12/2/2016
1.0.2 281 11/11/2016
1.0.1 287 11/1/2016
1.0.0 276 10/31/2016