WebHostTest<T> Class
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting.AspNetCore
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll
Represents a base class from which all implementations of unit testing, that uses Microsoft Dependency Injection and depends on ASP.NET Core, should derive.
public abstract class WebHostTest<T> : HostTest<T>, IAsyncLifetime, IClassFixture<T>, IWebHostTest, IHostTest, IConfigurationTest, IEnvironmentTest, ITest, IDisposable, IAsyncDisposable, IPipelineTest where T : class, IWebHostFixture
Type Parameters
TThe type of the object that implements the IWebHostFixture interface.
- Inheritance
-
HostTest<T>WebHostTest<T>
- Implements
-
IAsyncLifetimeIClassFixture<T>
- Inherited Members
Constructors
| Name | Description |
|---|---|
| WebHostTest(bool, T, ITestOutputHelper, Type) | Initializes a new instance of the WebHostTest<T> class. |
| WebHostTest(T, ITestOutputHelper, Type) | Initializes a new instance of the WebHostTest<T> class. |
Properties
| Name | Description |
|---|---|
| Application | Gets the IApplicationBuilder initialized by the IHost. |
Methods
| Name | Description |
|---|---|
| ConfigureApplication(IApplicationBuilder) | Configures the HTTP request pipeline. |