Свойство | Тип | Описание | |
---|---|---|---|
DefaultHttpsServerPrefixUri | |||
DefaultServerPrefixUri |
Метод | Описание | |
---|---|---|
CreateWebException ( HttpStatusCode status, |
Create a WebException with the specified content.
|
|
CreateWebException ( HttpStatusCode status, string content, Action |
Create a WebException with the specified content.
|
|
Dispose ( ) : void |
Stop and closes the listener.
|
|
MockHttpServer ( AsyncExceptionManager exceptionManager, |
Initializes a new instance of the MockHttpServer class that record or playback responses for requests in a session.
|
|
SetupCertificates ( ) : void |
Setup certificates required for the unit tests
|
Метод | Описание | |
---|---|---|
ChangeUriBase ( |
Returns the originalUri with its prefix changed from originalUriPrefix to newPrefix, or if the prefix is not in the originalUri, return the Uri as is.
|
|
ConstructListenerResponse ( HttpMessage responseInfo, |
Constructs the response from the specified HttpMessage.Response.
|
|
ConstructRequestInfo ( |
Create an HttpMessage.Request object out of the given originalRequest.
|
|
ConstructResponseInfo ( |
Create an HttpMessage.Response object out of the response from a service.
|
|
CreateListener ( Action |
Create a HttpListener to handles requests.
|
|
ExecuteProcess ( string filename, string arguments ) : |
Helper method to execute and wait for process to complete.
|
|
GetResponseInfoFromService ( |
Retrieves an HttpMessage object from a real service.
|
|
HandleMockRequest ( |
The async delegate that handles an incoming request, passing it through to a real service and record the response if serviceBaseUri was specified, or plays back responses from a pre-recorded session if it was not.
|
|
HandleRequest ( IAsyncResult ar, Action |
The async delegate that handles an incoming request.
|
|
MakeServiceRequest ( HttpMessage originalRequest ) : |
Make an request to the real service and retrieve the response.
|
|
MockHttpServer ( AsyncExceptionManager exceptionManager, |
Initializes a new instance of the MockHttpServer class with a specified server prefix.
|
public static CreateWebException ( HttpStatusCode status, |
||
status | HttpStatusCode | The status code to use in the exception. |
content | A |
|
contextHandler | Action |
An action that adds extra info to the response. |
Результат |
public static CreateWebException ( HttpStatusCode status, string content, Action |
||
status | HttpStatusCode | The status code to use in the exception. |
content | string | The exception content. |
contextHandler | Action |
An action that adds extra info to the response. |
Результат |
public MockHttpServer ( AsyncExceptionManager exceptionManager, |
||
exceptionManager | AsyncExceptionManager | /// The exception manager that captures all async exceptions. /// |
baseUri | The server prefix to use. | |
session | Microsoft.WindowsAzure.Commands.SqlDatabase.Test.UnitTests.MockServer.HttpSession | The object that stores request/response information. |
Результат | System |
public static SetupCertificates ( ) : void | ||
Результат | void |
public static Uri,System DefaultHttpsServerPrefixUri | ||
Результат |