TestServer.Create Method
Namespace: Microsoft.Owin.Testing
Assembly: Microsoft.Owin.Testing (in Microsoft.Owin.Testing.dll)
Overload List
Name | Description | |
---|---|---|
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. |
See Also
TestServer Class
Microsoft.Owin.Testing Namespace
Return to top
TestServer.Create Method (Action<IAppBuilder>)
Create a new TestServer instance and configure the OWIN pipeline.
Syntax
public static TestServer Create(
Action<IAppBuilder> startup
)
public:
static TestServer^ Create(
Action<IAppBuilder^>^ startup
)
static member Create :
startup:Action<IAppBuilder> -> TestServer
Public Shared Function Create (
startup As Action(Of IAppBuilder)
) As TestServer
Parameters
startup
Type: System.Action<IAppBuilder>Startup function used to configure the OWIN pipeline.
Return Value
Type: Microsoft.Owin.Testing.TestServer
Returns TestServer.
Return to top
TestServer.Create<TStartup> Method ()
Create a new TestServer instance and configure the OWIN pipeline.
Syntax
public static TestServer Create<TStartup>()
public:
generic<typename TStartup>
static TestServer^ Create()
static member Create<'TStartup> : unit -> TestServer
Public Shared Function Create(Of TStartup) As TestServer
Return Value
Type: Microsoft.Owin.Testing.TestServer
Returns TestServer.
Type Parameters
- TStartup
Class containing a startup function used to configure the OWIN pipeline.
Return to top