C# Class Ploeh.AutoFixture.AutoNSubstitute.SubstituteRequest

Defines a request for a substitute.
Unlike some other test isolation frameworks which define types that represent the dynamically generated proxies, such as Mock{T} in Moq and Fake{T} in FakeItEasy, NSubstitute does not. This class fills this gap and allows AutoFixture to distinguish an explicit request for a substitute from a request for a regular type. This is necessary to support creation of substitutes for concrete types.
Show file Open project: AutoFixture/AutoFixture

Public Methods

Method Description
SubstituteRequest ( Type targetType ) : System

Initializes a new instance of the SubstituteRequest class.

ToString ( ) : string

Add user friendly request message.

Method Details

SubstituteRequest() public method

Initializes a new instance of the SubstituteRequest class.
public SubstituteRequest ( Type targetType ) : System
targetType System.Type /// A for which a substitute is being requested. ///
return System

ToString() public method

Add user friendly request message.
public ToString ( ) : string
return string