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

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

Méthodes publiques

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

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

MockRequest() public méthode

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

ReadCookie() public méthode

Reads the cookie.
public ReadCookie ( string name ) : string
name string The cookie name.
Résultat string

ValidateInput() public méthode

Validates the input.
public ValidateInput ( ) : void
Résultat void

this() public méthode

Gets the param with the specified key.
public this ( string key ) : string
key string
Résultat string