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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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