Class AutoConfiguredNSubstituteCustomization

Namespace: AutoFixture.AutoNSubstitute
Assembly: AutoFixture.AutoNSubstitute.dll

Enables auto-mocking and auto-setup with NSubstitute. Members of a substitute will be automatically setup to retrieve the return values from a fixture.

[Obsolete("This customization is obsolete and will be removed in a future versions of product. Please use 'new AutoNSubstituteCustomization { ConfigureMembers = true }' customization instead.")]
public class AutoConfiguredNSubstituteCustomization : AutoNSubstituteCustomization, ICustomization

Inheritance

objectAutoNSubstituteCustomizationAutoConfiguredNSubstituteCustomization

Implements

ICustomization

Inherited Members

AutoNSubstituteCustomization.Customize(IFixture), AutoNSubstituteCustomization.Builder, AutoNSubstituteCustomization.Relay, AutoNSubstituteCustomization.ConfigureMembers, AutoNSubstituteCustomization.GenerateDelegates, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

AutoConfiguredNSubstituteCustomization()

Initializes a new instance of the AutoConfiguredNSubstituteCustomization class.

public AutoConfiguredNSubstituteCustomization()

Remarks

Uses a new instance of NSubstituteBuilder as the builder.

AutoConfiguredNSubstituteCustomization(ISpecimenBuilder)

Initializes a new instance of the AutoConfiguredNSubstituteCustomization class.

public AutoConfiguredNSubstituteCustomization(ISpecimenBuilder relay)

Parameters

relay ISpecimenBuilder

The builder to use to create specimens for this customization.