C# Class JenkinsTransport.UnitTests.TestHelpers.TestWebResponse

Implementation of a WebResponse for the purpose of unit testing
Inheritance: System.Net.WebResponse, IDisposable
Show file Open project: csnate/cctray-jenkins-transport Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetResponseStream ( ) : Stream

See WebResponse.GetResponseStream.

TestWebResponse ( Stream responseStream ) : System

Initializes a new instance of TestWebResponse with the response stream to return.

TestWebResponse ( System.Xml.Linq.XDocument xdoc ) : System

Initialize a new instance of TestWebResponse using the supplied XDocument

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetResponseStream() public method

See WebResponse.GetResponseStream.
public GetResponseStream ( ) : Stream
return Stream

TestWebResponse() public method

Initializes a new instance of TestWebResponse with the response stream to return.
public TestWebResponse ( Stream responseStream ) : System
responseStream Stream
return System

TestWebResponse() public method

Initialize a new instance of TestWebResponse using the supplied XDocument
public TestWebResponse ( System.Xml.Linq.XDocument xdoc ) : System
xdoc System.Xml.Linq.XDocument
return System