PeanutButter
|
Classes | |
class | BuilderFinderExtensions |
class | CannotGetAnotherDifferentRandomValueException< T > |
Exception thrown when the method GetAnother is unable to find another random value different from the exclusion value specified. More... | |
class | DateRange |
Holds a date range. More... | |
class | EnumerableExtensions |
Provides extensions for generic IEnumerable collections. More... | |
class | GenericBuilder< TBuilder, TEntity > |
Base class for builders to produce instance of objects with a fluent builder-like syntax. Also includes utilities like randomizing property values. More... | |
class | GenericBuilderBase |
Abstract base class for housing shared logic between all builders and allowing a base, unconstructable class to use to reference a collection of builders. More... | |
class | GenericBuilderInstanceCreationException |
Exception thrown then the default method for constructing entities within a GenericBuilder fails, normally because the entity being built has no parameterless constructor. More... | |
class | GenericBuilderLocator |
Locator class which attempts to find suitable builders on demand. More... | |
interface | IGenericBuilder |
The most basic interface to implement for GenericBuilder instances. More... | |
class | NaturalData |
Provides modifiable sources of "natural" data. More... | |
class | NoRandomize |
Specifies one or more properties, by name, to ignore when attempting .WithRandomProps on an entity. More... | |
class | ObjectExtensions |
Provides the .Randomize extension for objects. More... | |
class | RandomizerAttribute |
Base class to use when wishing to guide randomization on a builder via attributes. More... | |
class | RandomValueGen |
Class which provides a number of static methods to produce random values. Suggestion: make use of "using static" to bring these methods into your class as if they were local members, ie: using static PeanutButter.RandomGenerators.RandomValueGen;. More... | |
class | RequireNonZero |
Requires that the named property is randomized to a non-zero value. More... | |
class | RequireNonZeroId |
Requires that the field named "Id" be non-zero. More... | |
class | RequireUnique |
Abstract class to require uniqueness on a property or field by name. More... | |
class | RequireUnique< T > |
Require unique values for named properties (don't forget the type!) More... | |
class | RequireUniqueId |
Require a unique Id on the generated entity. More... | |
class | Restrict |
Restricts the possible values for a property to the provided list. More... | |
class | SatelliteAssemblyInitializer |
class | StringArrayExtensionsForMatchingNamespaces |
class | ThreadSafeRandom |
class | UnableToCreateDynamicBuilderException |
Exception thrown when the PeanutButter runtime is unable to automatically generate a required builder for a type. Happens most often if the type is inaccessible to the PeanutButter runtime. If the type to be built is internal, it is recommended to make internals visible to PeanutButter.RandomGenerators; otherwise the builder cannot be generated and the consuming code will need to provide a builder which, if it is public, will be discovered and used instead of attempting to generate a builder. More... | |
class | UniqueRandomValueGenerator |
Base class for UniqueRandomValueGenerator<T>. More... | |
class | UniqueRandomValueGenerator< T > |
Generates unique random values per instance. More... |
Enumerations | |
enum | TimeSpanContexts { Ticks , Milliseconds , Seconds , Minutes , Hours , Days } |
Context to use when getting a random timespan. |