Table of Contents

Namespace FEFF.TestFixtures.AspNetCore

Classes

AppClientFixture<TEntryPoint>

This fixture returns HttpClient connected to an application being tested.

AppConfiguratorExtensions

Extension methods for IAppConfigurator to simplify test application configuration.

AppManagerFixture<TEntryPoint>

Allows configuring and starting the tested application via WebApplicationFactory<TEntryPoint>.

AppServicesFixture<TEntryPoint>

Allows retrieving services from the application under test, including scoped services.

FakeLoggerFixture<TEntryPoint>

Replaces the ILoggerProvider service with a Microsoft.Extensions.Logging.Testing.FakeLoggerProvider singleton in the application under test. Provides a Microsoft.Extensions.Logging.Testing.FakeLogCollector for exploring captured application log output in tests.

FakeRandomFixture<TEntryPoint>

Replaces the Random service with a FakeRandom singleton in the application under test.

FakeTimeFixture<TEntryPoint>

Replaces the TimeProvider service with a Microsoft.Extensions.Time.Testing.FakeTimeProvider singleton in the application under test.

TmpDatabaseNameFixture<TEntryPoint, TOptionsFixture>

A fixture that appends a unique test identifier to connection string database names, ensuring each test runs against an isolated database.

Interfaces

IAppClientFixture

Exposes an HttpClient connected to the application under test.

IAppConfigurator

Provides a way to configure the test application's web host before it starts.

IAppManagerFixture

Provides access to the application configuration and lifecycle state.

IAppServicesFixture

Defines the contract for exposing a lazily-created service scope for resolving services from the application under test.

IFakeRandomFixture

Defines the contract for exposing a FakeRandom instance for controlling randomness in tests.

IFakeTimeFixture

Defines the contract for exposing a Microsoft.Extensions.Time.Testing.FakeTimeProvider for controlling time in tests.

ITestApplication

Represents a test application running via WebApplicationFactory<TEntryPoint>.

ITmpDatabaseNameFixtureOptions

Defines the contract for configuration options for TmpDatabaseNameFixture<TEntryPoint, TOptionsFixture>.

Enums

AspEnvironment

Specifies the ASP.NET Core environment for the test application.