Interface IMinimalHostFixture
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assembly
- Codebelt.Extensions.Xunit.Hosting.dll
Provides a way to use Microsoft Dependency Injection in unit tests (minimal style).
public interface IMinimalHostFixture : IHostFixture, IConfigurationTest, IEnvironmentTest, IDisposable, IAsyncDisposable
- Inherited Members
- Extension Methods
Properties
ConfigureHostCallback
Gets or sets the delegate that provides a way to override the IHostApplicationBuilder defaults set up by ConfigureHost(Test).
Action<IHostApplicationBuilder> ConfigureHostCallback { get; set; }
Property Value
- Action<IHostApplicationBuilder>
The delegate that provides a way to override the IHostApplicationBuilder.
Methods
ConfigureHost(Test)
Creates and configures the IHost of this IMinimalHostFixture.
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.