IWebApplicationFixture<TEntryPoint> Interface
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting.AspNetCore
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll
Provides a way to use Microsoft Dependency Injection in tests that bootstrap an existing ASP.NET Core application entry point.
public interface IWebApplicationFixture<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
| Name | Description |
|---|---|
| ConfigureWebHostCallback | Gets or sets the delegate that provides a way to override the IWebHostBuilder before the application is built. |
| Server | Gets the TestServer initialized by this instance. |
Methods
| Name | Description |
|---|---|
| ConfigureHost(Test) | Creates and configures the Host of this IWebApplicationFixture<TEntryPoint>. |