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

Provides the .Randomize extension for objects. More...

Static Public Member Functions

static T Randomized< T > (this T data)
 Randomizes properties on the object.

Detailed Description

Provides the .Randomize extension for objects.

Member Function Documentation

◆ Randomized< T >()

T PeanutButter.RandomGenerators.ObjectExtensions.Randomized< T > ( this T data)
static

Randomizes properties on the object.

  • think of it a bit like GetRandom<T> but acting on an existing object. In fact, where possible, we'll use GetRandom<T>!
Parameters
data
Template Parameters
T
Returns
Type Constraints
T :class 

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.RandomGenerators/ObjectExtensions.cs