Class RangedRequest
Namespace: AutoFixture.DataAnnotations
Assembly: AutoFixture.dll
Encapsulates a request of a specified type within the specified range.
public class RangedRequest : IEquatable<RangedRequest>Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
RangedRequest(Type, Type, object, object)
Initializes a new instance of the RangedRequest class.
public RangedRequest(Type memberType, Type operandType, object minimum, object maximum)Parameters
memberType Type
Type of the member the range is specified for.
operandType Type
Type of the operand.
minimum object
The minimum.
maximum object
The maximum.
Properties
Maximum
Gets the maximum value.
public object Maximum { get; }Property Value
MemberType
Gets the type of the member the range is specified for.
This property defines the expected type of the result.
Refer to the OperandType for additional hints about the actual range value type.
public Type MemberType { get; }Property Value
Minimum
Gets the minimum value.
public object Minimum { get; }Property Value
OperandType
Gets the specified type of the operand the range is specified for.
This property might not correspond to the actual type of a member for which the Range is specified.
Refer to the MemberType property to get the actual member type.
public Type OperandType { get; }Property Value
Methods
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(RangedRequest)
public bool Equals(RangedRequest other)Parameters
other RangedRequest
Returns
GetConvertedMaximum(Type)
Gets maximum value converted to the specified type.
public object GetConvertedMaximum(Type targetType)Parameters
targetType Type
Returns
GetConvertedMinimum(Type)
Gets minimum value converted to the specified type.
public object GetConvertedMinimum(Type targetType)Parameters
targetType Type
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()