C# Класс Castle.MonoRail.Framework.Test.MockRequest

Represents a mock implementation of IRequest for unit test purposes.
Наследование: IRequest
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BinaryRead() публичный Метод

Reads the request data as a byte array.
public BinaryRead ( int count ) : byte[]
count int How many bytes.
Результат byte[]

MockRequest() публичный Метод

Initializes a new instance of the MockRequest class.
public MockRequest ( IDictionary cookies ) : System
cookies IDictionary The cookies.
Результат System

ReadCookie() публичный Метод

Reads the cookie.
public ReadCookie ( string name ) : string
name string The cookie name.
Результат string

ValidateInput() публичный Метод

Validates the input.
public ValidateInput ( ) : void
Результат void

this() публичный Метод

Gets the param with the specified key.
public this ( string key ) : string
key string
Результат string