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)
Inheritance Hierarchy
System.Object
Microsoft.Owin.Testing.TestServer
Syntax
public class TestServer : IDisposable
public ref class TestServer : IDisposable
type TestServer =
class
interface IDisposable
end
Public Class TestServer
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
TestServer() | Initializes a new instance of the TestServer class. |
Properties
Name | Description | |
---|---|---|
BaseAddress | Gets or sets the base address used when making requests. The default is 'https://localhost/'. |
|
Handler | The base handler that transitions to the OWIN pipeline. Wrap this instance to add intermediate handlers. |
|
HttpClient | Returns a new HttpClient which wraps the Handler and is capable of submitting requests to the OWIN pipeline. |
Methods
Name | Description | |
---|---|---|
Configure(Action<IAppBuilder>) | Configures the OWIN pipeline. |
|
Configure(Action<IAppBuilder>, StartOptions) | Configures the OWIN pipeline. |
|
Configure<TStartup>() | Configures the OWIN pipeline. |
|
Configure<TStartup>(StartOptions) | Configures the OWIN pipeline. |
|
Create(Action<IAppBuilder>) | Create a new TestServer instance and configure the OWIN pipeline. |
|
Create<TStartup>() | Create a new TestServer instance and configure the OWIN pipeline. |
|
CreateRequest(String) | Begins constructing a request message for submission. |
|
Dispose() | Disposes TestServer and OWIN pipeline. |
|
Dispose(Boolean) | Disposes TestServer and OWIN pipeline. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Invoke(IDictionary<String, Object>) | Directly invokes the OWIN pipeline with the given OWIN environment. |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Owin.Testing Namespace
Return to top