C# Class Sage.Test.ControllerFactoryTestExtension

Afficher le fichier Open project: igorfrance/sage

Méthodes publiques

Méthode 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

Méthode Description
ControllerFactoryTestExtension ( ) : System

Method Details

InitializeWithControllerTypes() public static méthode

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.
Résultat void