Class MinimalHostTest
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assembly
- Codebelt.Extensions.Xunit.Hosting.dll
Represents the non-generic base class from where its generic equivalent should derive.
public abstract class MinimalHostTest : HostTest, IAsyncLifetime, IHostTest, IConfigurationTest, IEnvironmentTest, ITest, IDisposable, IAsyncDisposable
- Inheritance
-
MinimalHostTest
- Implements
-
IAsyncLifetime
- Derived
- Inherited Members
Constructors
MinimalHostTest(ITestOutputHelper, Type)
Initializes a new instance of the MinimalHostTest class.
protected MinimalHostTest(ITestOutputHelper output = null, Type callerType = null)
Parameters
output
ITestOutputHelperAn implementation of the Xunit.Abstractions.ITestOutputHelper interface.
callerType
TypeThe Type of caller that ends up invoking this instance.
Methods
ConfigureHost(IHostApplicationBuilder)
Provides a way to override the IHostApplicationBuilder defaults.
protected virtual void ConfigureHost(IHostApplicationBuilder hb)
Parameters
hb
IHostApplicationBuilderThe IHostApplicationBuilder that initializes an instance of IHost.