Class NoDataAnnotationsCustomization

Namespace: AutoFixture.DataAnnotations
Assembly: AutoFixture.dll

A customization that removes support for generating values that are customized based on the member's data annotations attributes.

public class NoDataAnnotationsCustomization : ICustomization

Inheritance

objectNoDataAnnotationsCustomization

Implements

ICustomization

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

This removes the RangeAttributeRelay, StringLengthAttributeRelay, and RegularExpressionAttributeRelay. Support for the removal of data annotations is provided for performance reasons, however a typical user of AutoFixture would not need to worry about the performance.

Constructors

NoDataAnnotationsCustomization()

public NoDataAnnotationsCustomization()

Methods

Customize(IFixture)

Customizes specified fixture by removing any default data annotations relays.

public void Customize(IFixture fixture)

Parameters

fixture IFixture

The fixture to customize.