Class AppManagerFixture<TEntryPoint>
- Namespace
- FEFF.TestFixtures.AspNetCore
- Assembly
- FEFF.TestFixtures.AspNetCore.dll
Allows configuring and starting the tested application via WebApplicationFactory<TEntryPoint>.
public sealed class AppManagerFixture<TEntryPoint> : IAsyncDisposable, IAppManagerFixture where TEntryPoint : class
Type Parameters
TEntryPointA type in the entry point assembly of the application. Typically the Startup or Program classes can be used.
- Inheritance
-
AppManagerFixture<TEntryPoint>
- Implements
- Inherited Members
Constructors
AppManagerFixture()
Initializes a new instance of AppManagerFixture<TEntryPoint>.
public AppManagerFixture()
Properties
ConfigurationBuilder
Gets the configurator used to customize the web host before startup.
public IAppConfigurator ConfigurationBuilder { get; }
Property Value
IsStarted
Gets a value indicating whether the application has been started.
public bool IsStarted { get; }
Property Value
LazyApplication
Gets the lazily-started test application.
public ITestApplication LazyApplication { get; }
Property Value
Remarks
Starts the application under test on first access.
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.