TestServer Class

 

Helps construct an in-memory OWIN pipeline and dispatch requests using HttpClient.

Namespace:   Microsoft.Owin.Testing
Assembly:  Microsoft.Owin.Testing (in Microsoft.Owin.Testing.dll)

System::Object
  Microsoft.Owin.Testing::TestServer

public ref class TestServer : IDisposable

NameDescription
System_CAPS_protmethodTestServer()

Initializes a new instance of the TestServer class.

NameDescription
System_CAPS_pubpropertyBaseAddress

Gets or sets the base address used when making requests. The default is 'http://localhost/'.

System_CAPS_pubpropertyHandler

The base handler that transitions to the OWIN pipeline. Wrap this instance to add intermediate handlers.

System_CAPS_pubpropertyHttpClient

Returns a new HttpClient which wraps the Handler and is capable of submitting requests to the OWIN pipeline.

NameDescription
System_CAPS_protmethodConfigure(Action<IAppBuilder^>^)

Configures the OWIN pipeline.

System_CAPS_protmethodConfigure(Action<IAppBuilder^>^, StartOptions^)

Configures the OWIN pipeline.

System_CAPS_protmethodConfigure<TStartup>()

Configures the OWIN pipeline.

System_CAPS_protmethodConfigure<TStartup>(StartOptions^)

Configures the OWIN pipeline.

System_CAPS_pubmethodSystem_CAPS_staticCreate(Action<IAppBuilder^>^)

Create a new TestServer instance and configure the OWIN pipeline.

System_CAPS_pubmethodSystem_CAPS_staticCreate<TStartup>()

Create a new TestServer instance and configure the OWIN pipeline.

System_CAPS_pubmethodCreateRequest(String^)

Begins constructing a request message for submission.

System_CAPS_pubmethodDispose()

Disposes TestServer and OWIN pipeline.

System_CAPS_protmethodDispose(Boolean)

Disposes TestServer and OWIN pipeline.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvoke(IDictionary<String^, Object^>^)

Directly invokes the OWIN pipeline with the given OWIN environment.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: