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

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

공개 메소드들

메소드 설명
AppendHeader ( string name, string value ) : void

Appends the header.

BinaryWrite ( Stream stream ) : void

Writes the stream to the browser

BinaryWrite ( byte buffer ) : void

Writes the buffer to the browser

Clear ( ) : void

Clears the response (only works if buffered)

ClearContent ( ) : void

Clears the response content (only works if buffered).

CreateCookie ( System.Web.HttpCookie cookie ) : void

Creates a cookie.

CreateCookie ( string name, string value ) : void

Creates a cookie.

CreateCookie ( string name, string value, System.DateTime expiration ) : void

Creates a cookie.

MockResponse ( IDictionary cookies ) : System

Initializes a new instance of the MockResponse class.

Redirect ( string url ) : void

Redirects the specified URL.

Redirect ( string url, bool endProcess ) : void

Redirects the specified URL.

Redirect ( string controller, string action ) : void

Redirects the specified controller.

Redirect ( string area, string controller, string action ) : void

Redirects the specified area.

RemoveCookie ( string name ) : void

Removes a cookie.

Write ( char ch ) : void

Writes the specified char.

Write ( char buffer, int index, int count ) : void

Writes the specified buffer.

Write ( object obj ) : void

Writes the specified obj.

Write ( string s ) : void

Writes the specified string.

WriteFile ( string fileName ) : void

Writes the file.

비공개 메소드들

메소드 설명
BuildMockUrl ( string area, string controller, string action ) : string

메소드 상세

AppendHeader() 공개 메소드

Appends the header.
public AppendHeader ( string name, string value ) : void
name string The name.
value string The value.
리턴 void

BinaryWrite() 공개 메소드

Writes the stream to the browser
public BinaryWrite ( Stream stream ) : void
stream Stream The stream.
리턴 void

BinaryWrite() 공개 메소드

Writes the buffer to the browser
public BinaryWrite ( byte buffer ) : void
buffer byte The buffer.
리턴 void

Clear() 공개 메소드

Clears the response (only works if buffered)
public Clear ( ) : void
리턴 void

ClearContent() 공개 메소드

Clears the response content (only works if buffered).
public ClearContent ( ) : void
리턴 void

CreateCookie() 공개 메소드

Creates a cookie.
public CreateCookie ( System.Web.HttpCookie cookie ) : void
cookie System.Web.HttpCookie The cookie.
리턴 void

CreateCookie() 공개 메소드

Creates a cookie.
public CreateCookie ( string name, string value ) : void
name string The name.
value string The value.
리턴 void

CreateCookie() 공개 메소드

Creates a cookie.
public CreateCookie ( string name, string value, System.DateTime expiration ) : void
name string The name.
value string The value.
expiration System.DateTime The expiration.
리턴 void

MockResponse() 공개 메소드

Initializes a new instance of the MockResponse class.
public MockResponse ( IDictionary cookies ) : System
cookies IDictionary The cookies.
리턴 System

Redirect() 공개 메소드

Redirects the specified URL.
public Redirect ( string url ) : void
url string The URL.
리턴 void

Redirect() 공개 메소드

Redirects the specified URL.
public Redirect ( string url, bool endProcess ) : void
url string The URL.
endProcess bool if set to true [end process].
리턴 void

Redirect() 공개 메소드

Redirects the specified controller.
public Redirect ( string controller, string action ) : void
controller string The controller.
action string The action.
리턴 void

Redirect() 공개 메소드

Redirects the specified area.
public Redirect ( string area, string controller, string action ) : void
area string The area.
controller string The controller.
action string The action.
리턴 void

RemoveCookie() 공개 메소드

Removes a cookie.
public RemoveCookie ( string name ) : void
name string The name.
리턴 void

Write() 공개 메소드

Writes the specified char.
public Write ( char ch ) : void
ch char The char.
리턴 void

Write() 공개 메소드

Writes the specified buffer.
public Write ( char buffer, int index, int count ) : void
buffer char The buffer.
index int The index.
count int The count.
리턴 void

Write() 공개 메소드

Writes the specified obj.
public Write ( object obj ) : void
obj object The obj.
리턴 void

Write() 공개 메소드

Writes the specified string.
public Write ( string s ) : void
s string The string.
리턴 void

WriteFile() 공개 메소드

Writes the file.
public WriteFile ( string fileName ) : void
fileName string Name of the file.
리턴 void