Interface IApplicationFixture<TEntryPoint>
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assembly
- Codebelt.Extensions.Xunit.Hosting.dll
Provides a way to use Microsoft Dependency Injection in tests that bootstrap an existing .NET application entry point.
public interface IApplicationFixture<TEntryPoint> : IHostFixture, IConfigurationTest, IEnvironmentTest, IDisposable, IAsyncDisposable where TEntryPoint : class
Type Parameters
TEntryPointA type in the entry point assembly of the application.
- Inherited Members
- Extension Methods
Properties
ConfigureHostCallback
Gets or sets the delegate that provides a way to override the IHostBuilder before the application is built.
Action<IHostBuilder> ConfigureHostCallback { get; set; }
Property Value
- Action<IHostBuilder>
The delegate that provides a way to override the IHostBuilder.
Methods
ConfigureHost(Test)
Creates and configures the Host of this IApplicationFixture<TEntryPoint>.
void ConfigureHost(Test hostTest)
Parameters
hostTestTestThe object that inherits from ApplicationTest<TEntryPoint, T>.
Remarks
hostTest was added to support those cases where the caller is required in the host configuration.