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

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

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

Метод Описание
HtmlEncode ( string content ) : string

HTML encodes a string and returns the encoded string.

JavaScriptEscape ( string content ) : string

Escapes JavaScript with Url encoding and returns the encoded string.

Converts quotes, single quotes and CR/LFs to their representation as an escape character.

MapPath ( string virtualPath ) : string

Returns the physical path for the specified virtual path.

UrlDecode ( string content ) : string

URL decodes a string and returns the decoded string.

UrlEncode ( string content ) : string

URL encodes a string and returns the encoded string.

UrlPathEncode ( string content ) : string

URL encodes the path portion of a URL string and returns the encoded string.

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

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

HTML encodes a string and returns the encoded string.
public HtmlEncode ( string content ) : string
content string The text string to HTML encode.
Результат string

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

Escapes JavaScript with Url encoding and returns the encoded string.
Converts quotes, single quotes and CR/LFs to their representation as an escape character.
public JavaScriptEscape ( string content ) : string
content string The text to URL encode and escape JavaScript within.
Результат string

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

Returns the physical path for the specified virtual path.
public MapPath ( string virtualPath ) : string
virtualPath string The virtual path.
Результат string

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

URL decodes a string and returns the decoded string.
public UrlDecode ( string content ) : string
content string The text to URL decode.
Результат string

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

URL encodes a string and returns the encoded string.
public UrlEncode ( string content ) : string
content string The text to URL encode.
Результат string

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

URL encodes the path portion of a URL string and returns the encoded string.
public UrlPathEncode ( string content ) : string
content string The text to URL encode.
Результат string