Table of Contents

Class FixedNextStrategy<T>

Namespace
FEFF.TestFixtures.AspNetCore.Randomness
Assembly
FEFF.TestFixtures.AspNetCore.dll

A random strategy that always returns the same fixed value.

public class FixedNextStrategy<T> : INextStrategy<T>

Type Parameters

T

The type of the fixed value.

Inheritance
FixedNextStrategy<T>
Implements
Inherited Members

Constructors

FixedNextStrategy(T)

Creates a new FixedNextStrategy<T> that always returns the specified value.

public FixedNextStrategy(T value)

Parameters

value T

The value to return.

Properties

Value

Gets or sets the fixed value to return.

public T Value { get; set; }

Property Value

T

Methods

Next()

Returns the next fake random value.

public T Next()

Returns

T

A fake random value of type T.