C# 클래스 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.
파일 보기 프로젝트 열기: AutoFixture/AutoFixture

공개 메소드들

메소드 설명
SubstituteRequest ( Type targetType ) : System

Initializes a new instance of the SubstituteRequest class.

ToString ( ) : string

Add user friendly request message.

메소드 상세

SubstituteRequest() 공개 메소드

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

ToString() 공개 메소드

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