StandIn.Testing
1.0.0
See the version list below for details.
dotnet add package StandIn.Testing --version 1.0.0
NuGet\Install-Package StandIn.Testing -Version 1.0.0
<PackageReference Include="StandIn.Testing" Version="1.0.0" />
<PackageVersion Include="StandIn.Testing" Version="1.0.0" />
<PackageReference Include="StandIn.Testing" />
paket add StandIn.Testing --version 1.0.0
#r "nuget: StandIn.Testing, 1.0.0"
#:package StandIn.Testing@1.0.0
#addin nuget:?package=StandIn.Testing&version=1.0.0
#tool nuget:?package=StandIn.Testing&version=1.0.0
StandIn
Benutzer während der Entwicklung simulieren: ein gepflegter Nachfolger von RimDev.Stuntman für ASP.NET Core ab .NET 8.
Status: Funktionsumfang komplett (Phase 1 bis 5), Release-Vorbereitung läuft. Noch nicht auf NuGet veröffentlicht.
Pakete
| Paket | Zweck |
|---|---|
StandIn.AspNetCore |
Handler, Benutzerquellen, Endpunkte, User Picker für MVC/Razor Pages, Token-Endpunkt |
StandIn.Blazor |
Picker-Komponente, AuthenticationStateProvider, Token-Handling (Server, WASM, Auto, Hybrid) |
StandIn.Client |
HttpClient-Handler für MAUI, WPF, WinForms, Konsole, Worker |
StandIn.Testing |
Hilfen für WebApplicationFactory-Integrationstests |
Ziel-Frameworks: net8.0 und net10.0. .NET 8 und 9 sind seit dem 10.11.2026 nicht mehr
von Microsoft unterstützt, net8.0 bleibt für Bestandsprojekte im Paket.
Schnellstart
builder.Services.AddAuthentication().AddStandIn(builder.Environment, options =>
{
options.AddUser(new StandInUser("admin", "Local Admin").AddRole("Administrator"));
options.AddUsersFromJson("stuntman-users.json");
});
app.UseAuthentication();
app.UseAuthorization();
app.MapStandIn();
In Views (MVC, Razor Pages) steht der User Picker mit @Html.StandInUserPicker() bereit; app.UseStandInPicker() blendet ihn zusätzlich in jede HTML-Seite ein.
AddStandIn ist nur in Development aktiv. In allen anderen Umgebungen tut es nichts, in Production lässt es sich nicht einschalten. Die Endpunkte liegen unter /stuntman.
Wohin als Nächstes
| Ich will ... | Lesen |
|---|---|
| von RimDev.Stuntman wechseln | docs/migration.md |
| eine REST-API per Bearer-Token testen | samples/MinimalApi |
| MVC mit Cookie und Picker | samples/Mvc |
| einen Client (MAUI, WPF, Blazor WASM) gegen die API anmelden | StandIn.Client, AddStandInClient; Blazor: AddStandInBlazor |
| Integrationstests als bestimmter Benutzer | factory.CreateStandInClient("admin") aus StandIn.Testing |
| Sicherheitsregeln und Entwurf | docs/concept.md |
Lizenz
MIT. Teile basieren auf RimDev.Stuntman (MIT, © 2018 Ritter Insurance Marketing), siehe THIRD-PARTY-NOTICES.md.
| 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 was computed. 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
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.15)
- StandIn.AspNetCore (>= 1.0.0)
-
net8.0
- Microsoft.AspNetCore.Mvc.Testing (>= 8.0.34)
- StandIn.AspNetCore (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 85 | 11/14/2026 |
| 1.0.0 | 79 | 11/14/2026 |
| 0.1.0-preview.2 | 60 | 11/14/2026 |
| 0.1.0-preview.1 | 67 | 11/14/2026 |