PeanutButter
Loading...
Searching...
No Matches
PeanutButter.RandomGenerators.RequireUniqueId Class Reference

Require a unique Id on the generated entity. More...

Inheritance diagram for PeanutButter.RandomGenerators.RequireUniqueId:
PeanutButter.RandomGenerators.RequireUnique< T > PeanutButter.RandomGenerators.RandomizerAttribute

Public Member Functions

 RequireUniqueId ()
 
override void Init (Type entityType)
 override in your implementation if you'd like to late-initialize relevant property names
Parameters
type

 
- Public Member Functions inherited from PeanutButter.RandomGenerators.RequireUnique< T >
 RequireUnique (string propertyName)
 
override void SetRandomValue (PropertyOrField propInfo, ref object target)
 
 RequireUnique (string propertyName)
 
- Public Member Functions inherited from PeanutButter.RandomGenerators.RandomizerAttribute
void SetRandomValue (PropertyOrField propInfo, ref object target)
 Actually invoked when attempting to set a random value on the named property.
 

Additional Inherited Members

- Protected Member Functions inherited from PeanutButter.RandomGenerators.RandomizerAttribute
 RandomizerAttribute (string propertyName, params string[] otherPropertyNames)
 Constructs this attribute to act against one or more properties by name.
 
- Properties inherited from PeanutButter.RandomGenerators.RequireUnique< T >
Type PropertyType [get, set]
 The type of the property which is required to be unique, should be set by inheriting class.
 
- Properties inherited from PeanutButter.RandomGenerators.RandomizerAttribute
string[] PropertyNames [get]
 The name of the property to which this randomizer attribute pertains.
 

Detailed Description

Require a unique Id on the generated entity.

Member Function Documentation

◆ Init()

override void PeanutButter.RandomGenerators.RequireUniqueId.Init ( Type  entityType)
virtual

override in your implementation if you'd like to late-initialize relevant property names

Parameters
type

Reimplemented from PeanutButter.RandomGenerators.RequireUnique< T >.


The documentation for this class was generated from the following file: