Class ManagedMinimalHostFixture
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assembly
- Codebelt.Extensions.Xunit.Hosting.dll
Provides a default implementation of the IMinimalHostFixture interface.
public class ManagedMinimalHostFixture : HostFixture, IAsyncLifetime, IMinimalHostFixture, IHostFixture, IConfigurationTest, IEnvironmentTest, IDisposable, IAsyncDisposable
- Inheritance
-
ManagedMinimalHostFixture
- Implements
-
IAsyncLifetime
- Derived
- Inherited Members
- Extension Methods
Remarks
This is the "modern" minimal style implementation of ManagedHostFixture.
Constructors
ManagedMinimalHostFixture()
Initializes a new instance of the ManagedMinimalHostFixture class.
public ManagedMinimalHostFixture()
Properties
ConfigureHostCallback
Gets or sets the delegate that initializes the host application builder.
public Action<IHostApplicationBuilder> ConfigureHostCallback { get; set; }
Property Value
- Action<IHostApplicationBuilder>
The delegate that initializes the host application builder.
Methods
ConfigureHost(Test)
Creates and configures the IHost of this instance.
public virtual void ConfigureHost(Test hostTest)
Parameters
hostTest
TestThe object that inherits from MinimalHostTest<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 MinimalHostTest<T>.