C# 클래스 NSubstitute.Core.SubstituteFactory

상속: ISubstituteFactory
파일 보기 프로젝트 열기: nsubstitute/NSubstitute 1 사용 예제들

공개 메소드들

메소드 설명
Create ( Type typesToProxy, object constructorArguments ) : object

Create a substitute for the given types.

CreatePartial ( Type typesToProxy, object constructorArguments ) : object

Create an instance of the given types, with calls configured to call the base implementation where possible. Parts of the instance can be substituted using Returns().

GetCallRouterCreatedFor ( object substitute ) : ICallRouter
SubstituteFactory ( ISubstitutionContext context, ICallRouterFactory callRouterFactory, IProxyFactory proxyFactory, ICallRouterResolver callRouterResolver ) : System

비공개 메소드들

메소드 설명
Create ( Type typesToProxy, object constructorArguments, SubstituteConfig config ) : object
GetPrimaryProxyType ( Type typesToProxy ) : Type

메소드 상세

Create() 공개 메소드

Create a substitute for the given types.
public Create ( Type typesToProxy, object constructorArguments ) : object
typesToProxy System.Type
constructorArguments object
리턴 object

CreatePartial() 공개 메소드

Create an instance of the given types, with calls configured to call the base implementation where possible. Parts of the instance can be substituted using Returns().
public CreatePartial ( Type typesToProxy, object constructorArguments ) : object
typesToProxy System.Type
constructorArguments object
리턴 object

GetCallRouterCreatedFor() 공개 메소드

public GetCallRouterCreatedFor ( object substitute ) : ICallRouter
substitute object
리턴 ICallRouter

SubstituteFactory() 공개 메소드

public SubstituteFactory ( ISubstitutionContext context, ICallRouterFactory callRouterFactory, IProxyFactory proxyFactory, ICallRouterResolver callRouterResolver ) : System
context ISubstitutionContext
callRouterFactory ICallRouterFactory
proxyFactory IProxyFactory
callRouterResolver ICallRouterResolver
리턴 System