C# 클래스 Ploeh.AutoFixture.AutoFakeItEasy.FakeItEasyRelay

Relays a request for an interface or an abstract class to a request for a Fake{T} of that class.
상속: ISpecimenBuilder
파일 보기 프로젝트 열기: AutoFixture/AutoFixture

공개 메소드들

메소드 설명
Create ( object request, ISpecimenContext context ) : object

Creates a new specimen based on a request.

FakeItEasyRelay ( ) : System

Initializes a new instance of the FakeItEasyRelay class.

FakeItEasyRelay ( IRequestSpecification fakeableSpecification ) : System

Initializes a new instance of the FakeItEasyRelay class with a specification that determines whether a type should be mocked.

메소드 상세

Create() 공개 메소드

Creates a new specimen based on a request.
public Create ( object request, ISpecimenContext context ) : object
request object The request that describes what to create.
context ISpecimenContext A context that can be used to create other specimens.
리턴 object

FakeItEasyRelay() 공개 메소드

Initializes a new instance of the FakeItEasyRelay class.
public FakeItEasyRelay ( ) : System
리턴 System

FakeItEasyRelay() 공개 메소드

Initializes a new instance of the FakeItEasyRelay class with a specification that determines whether a type should be mocked.
public FakeItEasyRelay ( IRequestSpecification fakeableSpecification ) : System
fakeableSpecification IRequestSpecification /// A specification that determines whether a type should be mocked or not. ///
리턴 System