C# 클래스 Castle.MonoRail.Framework.Test.MockServerUtility

Represents a mock implementation of IServerUtility for unit test purposes.
상속: IServerUtility
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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