C# Class CtcApi.Testing.TestWebRequestCreate

A web request creator for unit testing.
Inheritance: IWebRequestCreate
Show file Open project: BellevueCollege/CtcApi Class Usage Examples

Public Methods

Method Description
Create ( Uri uri ) : WebRequest

See IWebRequestCreate.Create.

CreateTestRequest ( string response ) : TestWebRequest

Utility method for creating a TestWebRequest and setting it to be the next WebRequest to use.

Method Details

Create() public method

See IWebRequestCreate.Create.
public Create ( Uri uri ) : WebRequest
uri System.Uri
return System.Net.WebRequest

CreateTestRequest() public static method

Utility method for creating a TestWebRequest and setting it to be the next WebRequest to use.
public static CreateTestRequest ( string response ) : TestWebRequest
response string The response the TestWebRequest will return.
return TestWebRequest