Class AutoConfiguredNSubstituteCustomization
Enables auto-mocking and auto-setup with NSubstitute. Members of a substitute will be automatically setup to retrieve the return values from a fixture.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture.AutoNSubstitute
Assembly: AutoFixture.AutoNSubstitute.dll
Syntax
[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
Constructors
| Improve this Doc View SourceAutoConfiguredNSubstituteCustomization()
Initializes a new instance of the AutoConfiguredNSubstituteCustomization class.
Declaration
public AutoConfiguredNSubstituteCustomization()
Remarks
Uses a new instance of NSubstituteBuilder as the builder.
AutoConfiguredNSubstituteCustomization(ISpecimenBuilder)
Initializes a new instance of the AutoConfiguredNSubstituteCustomization class.
Declaration
public AutoConfiguredNSubstituteCustomization(ISpecimenBuilder relay)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | relay | The builder to use to create specimens for this customization. |