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

Represents a mock implementation of IRequest for unit test purposes.
Inheritance: IRequest
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
BinaryRead ( int count ) : byte[]

Reads the request data as a byte array.

MockRequest ( IDictionary cookies ) : System

Initializes a new instance of the MockRequest class.

ReadCookie ( string name ) : string

Reads the cookie.

ValidateInput ( ) : void

Validates the input.

this ( string key ) : string

Gets the param with the specified key.

Method Details

BinaryRead() public method

Reads the request data as a byte array.
public BinaryRead ( int count ) : byte[]
count int How many bytes.
return byte[]

MockRequest() public method

Initializes a new instance of the MockRequest class.
public MockRequest ( IDictionary cookies ) : System
cookies IDictionary The cookies.
return System

ReadCookie() public method

Reads the cookie.
public ReadCookie ( string name ) : string
name string The cookie name.
return string

ValidateInput() public method

Validates the input.
public ValidateInput ( ) : void
return void

this() public method

Gets the param with the specified key.
public this ( string key ) : string
key string
return string