C# 클래스 Xunit.Internal.FabricContext

상속: IFabricContext
파일 보기 프로젝트 열기: BjRo/xunitbddextensions 1 사용 예제들

공개 메소드들

메소드 설명
CreateStub ( Type interfaceType ) : object

Creates a new stub of the specified interface type.

FabricContext ( Type typeToBuild, IMockingEngine mockingEngine, IContainer container, Fabric fabric ) : System

Creates a new instance of the FabricContext class.

InjectExistingInstanceIntoContainer ( Type interfaceType, object instance ) : void

Registers the existing instance specified by instance under the interface specified by interfaceType at the underlying IoC type.

ResolveByFabric ( Type type ) : object

Resolves the type specified by type with the root level fabric.

ResolveInstanceFromContainer ( Type typeToResolveByContainer ) : object

Resolves an instance of the specified type from the underlying IoC container.

ResolveInstancesFromContainer ( Type itemType ) : IEnumerable

Resolves a collection of the itemtype specified by itemType from the underlying IoC container.

메소드 상세

CreateStub() 공개 메소드

Creates a new stub of the specified interface type.
public CreateStub ( Type interfaceType ) : object
interfaceType System.Type /// Specifies a type to create a stub for. ///
리턴 object

FabricContext() 공개 메소드

Creates a new instance of the FabricContext class.
public FabricContext ( Type typeToBuild, IMockingEngine mockingEngine, IContainer container, Fabric fabric ) : System
typeToBuild System.Type /// Specifies the type to build. ///
mockingEngine IMockingEngine /// Specifies the mock factory. ///
container IContainer /// Specifies the container. ///
fabric Fabric /// Specifies the fabric. ///
리턴 System

InjectExistingInstanceIntoContainer() 공개 메소드

Registers the existing instance specified by instance under the interface specified by interfaceType at the underlying IoC type.
public InjectExistingInstanceIntoContainer ( Type interfaceType, object instance ) : void
interfaceType System.Type /// Specifies the interface type. ///
instance object /// Specifies an existing instance. ///
리턴 void

ResolveByFabric() 공개 메소드

Resolves the type specified by type with the root level fabric.
public ResolveByFabric ( Type type ) : object
type System.Type /// Specifies the type to resolve. ///
리턴 object

ResolveInstanceFromContainer() 공개 메소드

Resolves an instance of the specified type from the underlying IoC container.
public ResolveInstanceFromContainer ( Type typeToResolveByContainer ) : object
typeToResolveByContainer System.Type /// The type to resolve. ///
리턴 object

ResolveInstancesFromContainer() 공개 메소드

Resolves a collection of the itemtype specified by itemType from the underlying IoC container.
public ResolveInstancesFromContainer ( Type itemType ) : IEnumerable
itemType System.Type /// Specifies the item type. ///
리턴 IEnumerable