C# Class Microsoft.Silverlight.Testing.Tools.ServiceHelper

Set of helper methods used for the test service.
Mostrar archivo Open project: garyjohnson/wpnest

Public Methods

Method Description
Error ( string value ) : string

Returns a simple REST Error response.

HtmlDecode ( string value ) : string

Returns an HTML decoded string.

HtmlEncode ( string value ) : string

Returns an HTML encoded string.

OK ( ) : string

Returns the OK response.

OK ( string value ) : string

Returns the OK response with a value.

Response ( string status, string value ) : string

Returns a REST response.

UrlDecode ( string value ) : string

URL decodes a string.

UrlEncode ( string value ) : string

URL encodes a string.

Method Details

Error() public static method

Returns a simple REST Error response.
public static Error ( string value ) : string
value string The value to send.
return string

HtmlDecode() public static method

Returns an HTML decoded string.
public static HtmlDecode ( string value ) : string
value string The value instance.
return string

HtmlEncode() public static method

Returns an HTML encoded string.
public static HtmlEncode ( string value ) : string
value string The value instance.
return string

OK() public static method

Returns the OK response.
public static OK ( ) : string
return string

OK() public static method

Returns the OK response with a value.
public static OK ( string value ) : string
value string The value instance.
return string

Response() public static method

Returns a REST response.
public static Response ( string status, string value ) : string
status string The status of the response.
value string The value instance.
return string

UrlDecode() public static method

URL decodes a string.
public static UrlDecode ( string value ) : string
value string The value instance.
return string

UrlEncode() public static method

URL encodes a string.
public static UrlEncode ( string value ) : string
value string The value instance.
return string