Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
BuildMockUrl ( string area, string controller, string action ) : string |
public AppendHeader ( string name, string value ) : void | ||
name | string | The name. |
value | string | The value. |
Résultat | void |
public BinaryWrite ( Stream stream ) : void | ||
stream | Stream | The stream. |
Résultat | void |
public BinaryWrite ( byte buffer ) : void | ||
buffer | byte | The buffer. |
Résultat | void |
public CreateCookie ( System.Web.HttpCookie cookie ) : void | ||
cookie | System.Web.HttpCookie | The cookie. |
Résultat | void |
public CreateCookie ( string name, string value ) : void | ||
name | string | The name. |
value | string | The value. |
Résultat | void |
public CreateCookie ( string name, string value, System.DateTime expiration ) : void | ||
name | string | The name. |
value | string | The value. |
expiration | System.DateTime | The expiration. |
Résultat | void |
public MockResponse ( IDictionary cookies ) : System | ||
cookies | IDictionary | The cookies. |
Résultat | System |
public Redirect ( string url, bool endProcess ) : void | ||
url | string | The URL. |
endProcess | bool | if set to |
Résultat | void |
public Redirect ( string controller, string action ) : void | ||
controller | string | The controller. |
action | string | The action. |
Résultat | void |
public Redirect ( string area, string controller, string action ) : void | ||
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
Résultat | void |
public RemoveCookie ( string name ) : void | ||
name | string | The name. |
Résultat | void |
public Write ( char buffer, int index, int count ) : void | ||
buffer | char | The buffer. |
index | int | The index. |
count | int | The count. |
Résultat | void |
public WriteFile ( string fileName ) : void | ||
fileName | string | Name of the file. |
Résultat | void |