C# Class NStub.CSharp.ObjectGeneration.BuildHandler

Checks if a registered IMemberBuilder can handle a IMemberBuildContext request.
Inheritance: IBuildHandler
Exibir arquivo Open project: Jedzia/NStub

Public Methods

Method Description
BuildHandler ( Type type, bool>.Func handler, Type parameterDataType ) : System

Initializes a new instance of the BuildHandler class.

CreateInstance ( IMemberBuildContext context ) : IMemberBuilder

Creates a new instance of the IMemberBuilder specified in the Type property with the specified context data.

Private Methods

Method Description
CheckForAttributes ( Type builderType, Type parameterDataType ) : string

Method Details

BuildHandler() public method

Initializes a new instance of the BuildHandler class.
public BuildHandler ( Type type, bool>.Func handler, Type parameterDataType ) : System
type System.Type The type of the worker.
handler bool>.Func The handler that can determine if the can /// accept an order.
parameterDataType System.Type Type of the associated parameter data.
return System

CreateInstance() public method

Creates a new instance of the IMemberBuilder specified in the Type property with the specified context data.
public CreateInstance ( IMemberBuildContext context ) : IMemberBuilder
context IMemberBuildContext The context of the current test object.
return IMemberBuilder