Class ManagedWebMinimalHostFixture
- Assembly
- Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll
Provides a default implementation of the IWebMinimalHostFixture interface.
public class ManagedWebMinimalHostFixture : ManagedMinimalHostFixture, IAsyncLifetime, IWebMinimalHostFixture, IMinimalHostFixture, IHostFixture, IConfigurationTest, IEnvironmentTest, IDisposable, IAsyncDisposable, IPipelineTest
- Inheritance
-
ManagedWebMinimalHostFixture
- Implements
-
IAsyncLifetime
- Derived
- Inherited Members
- Extension Methods
Remarks
This is the "modern" minimal style implementation of ManagedWebHostFixture.
Constructors
ManagedWebMinimalHostFixture()
Initializes a new instance of the ManagedWebMinimalHostFixture class.
public ManagedWebMinimalHostFixture()
Properties
Application
Gets the Microsoft.AspNetCore.Builder.IApplicationBuilder initialized by the IHost.
public IApplicationBuilder Application { get; protected set; }
Property Value
- IApplicationBuilder
The Microsoft.AspNetCore.Builder.IApplicationBuilder initialized by the IHost.
ConfigureApplicationCallback
Gets or sets the delegate that configures the HTTP request pipeline.
public Action<IApplicationBuilder> ConfigureApplicationCallback { get; set; }
Property Value
- Action<IApplicationBuilder>
The delegate that configures the HTTP request pipeline.
Methods
ConfigureHost(Test)
Creates and configures the IHost of this instance.
public override void ConfigureHost(Test hostTest)
Parameters
hostTest
TestThe object that inherits from MinimalWebHostTest<T>.
Remarks
hostTest
was added to support those cases where the caller is required in the host configuration.
Exceptions
- ArgumentNullException
hostTest
is null.- ArgumentOutOfRangeException
hostTest
is not assignable from MinimalWebHostTest<T>.