C# Class JenkinsTransport.UnitTests.TestHelpers.TestWebResponse

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

Méthodes publiques

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

GetResponseStream() public méthode

See WebResponse.GetResponseStream.
public GetResponseStream ( ) : Stream
Résultat Stream

TestWebResponse() public méthode

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

TestWebResponse() public méthode

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