-
Notifications
You must be signed in to change notification settings - Fork 2
/
AutoFakerConfig.cs
43 lines (33 loc) · 1.23 KB
/
AutoFakerConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using Soenneker.Utils.AutoBogus.Generators;
namespace Soenneker.Utils.AutoBogus.Config;
public sealed class AutoFakerConfig
{
/// <summary>
/// The Bogus.Faker locale to use when generating values.
/// </summary>
// ReSharper disable once FieldCanBeMadeReadOnly.Global
public string Locale;
/// <summary>
/// Registers the number of items to generate for a collection.
/// </summary>
public int RepeatCount;
public int DataTableRowCount;
public int RecursiveDepth;
public HashSet<Type>? SkipTypes;
public HashSet<string>? SkipPaths;
public List<AutoFakerGeneratorOverride>? Overrides;
public int? TreeDepth;
// ReSharper disable once FieldCanBeMadeReadOnly.Global
public DateTimeKind DateTimeKind;
public AutoFakerConfig()
{
Locale = AutoFakerDefaultConfigOptions.Locale;
RepeatCount = AutoFakerDefaultConfigOptions.RepeatCount;
DataTableRowCount = AutoFakerDefaultConfigOptions.DataTableRowCount;
RecursiveDepth = AutoFakerDefaultConfigOptions.RecursiveDepth;
TreeDepth = AutoFakerDefaultConfigOptions.TreeDepth;
DateTimeKind = AutoFakerDefaultConfigOptions.DateTimeKind;
}
}