C# Class Castle.MonoRail.Framework.Test.MockRailsEngineContext

Represents a mock implementation of IRailsEngineContext for unit test purposes.
Inheritance: AbstractServiceContainer, IRailsEngineContext
Exibir arquivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
MockRailsEngineContext ( IRequest request, IResponse response, ITrace trace, System.UrlInfo urlInfo ) : System

Initializes a new instance of the MockRailsEngineContext class.

SetContainer ( IServiceProvider serviceProvider ) : void

Sets the container.

Transfer ( string path, bool preserveForm ) : void

Transfer the execution to another resource.

Protected Methods

Method Description
MockRailsEngineContext ( ) : System

Initializes a new instance of the MockRailsEngineContext class.

Private Methods

Method Description
AddEmailMessageSent ( Message message ) : void
AddMailTemplateRendered ( string templateName, IDictionary parameters ) : void
RegisterServices ( ) : void

Registers the services.

Method Details

MockRailsEngineContext() protected method

Initializes a new instance of the MockRailsEngineContext class.
protected MockRailsEngineContext ( ) : System
return System

MockRailsEngineContext() public method

Initializes a new instance of the MockRailsEngineContext class.
public MockRailsEngineContext ( IRequest request, IResponse response, ITrace trace, System.UrlInfo urlInfo ) : System
request IRequest The request.
response IResponse The response.
trace ITrace The trace.
urlInfo System.UrlInfo The URL info.
return System

SetContainer() public method

Sets the container.
public SetContainer ( IServiceProvider serviceProvider ) : void
serviceProvider IServiceProvider The service provider.
return void

Transfer() public method

Transfer the execution to another resource.
public Transfer ( string path, bool preserveForm ) : void
path string
preserveForm bool
return void