C# Class Sage.Test.ControllerFactoryTestExtension

ファイルを表示 Open project: igorfrance/sage

Public Methods

Method Description
InitializeWithControllerTypes ( this factory ) : void

Replaces the cache field of a the DefaultControllerFactory's ControllerTypeCache. This ensures that only the specified controller types will be searched when instantiating a controller. As the ControllerTypeCache is internal, this uses some reflection hackery.

Private Methods

Method Description
ControllerFactoryTestExtension ( ) : System

Method Details

InitializeWithControllerTypes() public static method

Replaces the cache field of a the DefaultControllerFactory's ControllerTypeCache. This ensures that only the specified controller types will be searched when instantiating a controller. As the ControllerTypeCache is internal, this uses some reflection hackery.
public static InitializeWithControllerTypes ( this factory ) : void
factory this The factory.
return void