FEFF.TestFixtures.AspNetCore
1.6.1
Prefix Reserved
dotnet add package FEFF.TestFixtures.AspNetCore --version 1.6.1
NuGet\Install-Package FEFF.TestFixtures.AspNetCore -Version 1.6.1
<PackageReference Include="FEFF.TestFixtures.AspNetCore" Version="1.6.1" />
<PackageVersion Include="FEFF.TestFixtures.AspNetCore" Version="1.6.1" />
<PackageReference Include="FEFF.TestFixtures.AspNetCore" />
paket add FEFF.TestFixtures.AspNetCore --version 1.6.1
#r "nuget: FEFF.TestFixtures.AspNetCore, 1.6.1"
#:package FEFF.TestFixtures.AspNetCore@1.6.1
#addin nuget:?package=FEFF.TestFixtures.AspNetCore&version=1.6.1
#tool nuget:?package=FEFF.TestFixtures.AspNetCore&version=1.6.1
FEFF.TestFixtures.AspNetCore
ASP.NET Core fixtures for the FEFF.TestFixtures solution.
About
Part of the FEFF.TestFixtures ecosystem — a framework-agnostic library for creating reusable test fixtures with scoped lifetimes. It replaces setup/teardown methods and the disposable pattern on test classes with composable, dependency-injected fixtures that can be shared across test projects. See the main README for full documentation.
This Package
This package provides fixtures for testing ASP.NET Core applications using WebApplicationFactory<T>. It simplifies application lifecycle management, HTTP client creation, and faking of common services.
Quick Start
Add the package to your test project:
dotnet add package FEFF.TestFixtures.AspNetCoreEnsure you have a test framework integration package installed (e.g.,
FEFF.TestFixtures.XunitV3).Resolve fixtures in your tests:
var client = TestContext.Current.GetFeffFixture<AppClientFixture<Program>>();
Fixtures Included
| Fixture | Description |
|---|---|
AppManagerFixture<TEntryPoint> |
Starts/stops the application via WebApplicationFactory; allows configuration and service collection modification before startup |
AppClientFixture<TEntryPoint> |
Creates an HttpClient connected to the test application |
AppServicesFixture<TEntryPoint> |
Resolves services from the application's IServiceProvider with scoped lifetime support |
FakeTimeFixture<TEntryPoint> |
Replaces TimeProvider with a controllable FakeTimeProvider |
FakeLoggerFixture<TEntryPoint> |
Replaces ILoggerProvider with a FakeLoggerProvider for assertion on log output |
FakeRandomFixture<TEntryPoint> |
Replaces Random.Shared with a deterministic FakeRandom |
TmpDatabaseNameFixture<TEntryPoint> |
Appends a unique identifier to connection string database names for test isolation |
Preview Features
Preview fixtures (subject to change) are shipped under the FEFF.TestFixtures.AspNetCore.Preview namespace.
| Fixture | Description |
|---|---|
AuthorizedAppClientFixture<TEntryPoint> |
Creates an authenticated HttpClient with a Bearer token |
Examples
See Also
| Package | Description |
|---|---|
| FEFF.TestFixtures | Core fixtures library |
| FEFF.TestFixtures.XunitV3 | Xunit v3 integration |
| FEFF.TestFixtures.TUnit | TUnit integration |
| FEFF.TestFixtures.AspNetCore | current package |
| FEFF.TestFixtures.AspNetCore.EF | EF Core database lifecycle fixture |
| FEFF.TestFixtures.AspNetCore.SignalR | SignalR testing fixture |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FEFF.TestFixtures (>= 1.6.1)
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.Testing (>= 10.6.0)
- Microsoft.Extensions.TimeProvider.Testing (>= 10.6.0)
-
net8.0
- FEFF.TestFixtures (>= 1.6.1)
- Microsoft.AspNetCore.Mvc.Testing (>= 8.0.25)
- Microsoft.Extensions.Diagnostics.Testing (>= 10.6.0)
- Microsoft.Extensions.TimeProvider.Testing (>= 10.6.0)
-
net9.0
- FEFF.TestFixtures (>= 1.6.1)
- Microsoft.AspNetCore.Mvc.Testing (>= 9.0.14)
- Microsoft.Extensions.Diagnostics.Testing (>= 10.6.0)
- Microsoft.Extensions.TimeProvider.Testing (>= 10.6.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on FEFF.TestFixtures.AspNetCore:
| Package | Downloads |
|---|---|
|
FEFF.TestFixtures.AspNetCore.EF
A library of fixtures used to test AspNetCore appications with EntityFrameworkCore. |
|
|
FEFF.TestFixtures.AspNetCore.SignalR
A library of fixtures used to test AspNetCore appications with SignalR-Client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.1 | 229 | 6/1/2026 |
| 1.6.0 | 300 | 5/6/2026 |
| 1.5.1 | 143 | 4/29/2026 |
| 1.5.0 | 250 | 4/28/2026 |
| 1.4.6 | 160 | 4/23/2026 |
| 1.4.5 | 152 | 4/22/2026 |
| 1.4.4 | 120 | 4/15/2026 |
| 1.4.3-alpha | 117 | 4/15/2026 |
| 1.4.2 | 211 | 4/13/2026 |
| 1.4.1 | 132 | 4/11/2026 |
| 1.3.5 | 123 | 4/11/2026 |
| 1.3.4 | 125 | 4/9/2026 |
| 1.3.3 | 123 | 4/9/2026 |
| 1.3.2 | 117 | 4/5/2026 |
| 1.3.1 | 106 | 4/3/2026 |
| 1.3.0-alpha | 105 | 4/2/2026 |
| 1.2.2-alpha | 180 | 3/28/2026 |
| 1.2.1-alpha | 103 | 3/25/2026 |
| 1.2.0-alpha | 107 | 3/23/2026 |
| 0.0.12-alpha | 118 | 4/15/2026 |