메소드 | 설명 | |
---|---|---|
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 |
public AppendHeader ( string name, string value ) : void | ||
name | string | The name. |
value | string | The value. |
리턴 | void |
public CreateCookie ( System.Web.HttpCookie cookie ) : void | ||
cookie | System.Web.HttpCookie | The cookie. |
리턴 | void |
public CreateCookie ( string name, string value ) : void | ||
name | string | The name. |
value | string | The value. |
리턴 | void |
public CreateCookie ( string name, string value, System.DateTime expiration ) : void | ||
name | string | The name. |
value | string | The value. |
expiration | System.DateTime | The expiration. |
리턴 | void |
public MockResponse ( IDictionary cookies ) : System | ||
cookies | IDictionary | The cookies. |
리턴 | System |
public Redirect ( string url, bool endProcess ) : void | ||
url | string | The URL. |
endProcess | bool | if set to |
리턴 | void |
public Redirect ( string controller, string action ) : void | ||
controller | string | The controller. |
action | string | The action. |
리턴 | void |
public Redirect ( string area, string controller, string action ) : void | ||
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
리턴 | void |
public Write ( char buffer, int index, int count ) : void | ||
buffer | char | The buffer. |
index | int | The index. |
count | int | The count. |
리턴 | void |
public WriteFile ( string fileName ) : void | ||
fileName | string | Name of the file. |
리턴 | void |