MagicCSharp.Testing.Clients
1.1.1
See the version list below for details.
dotnet add package MagicCSharp.Testing.Clients --version 1.1.1
NuGet\Install-Package MagicCSharp.Testing.Clients -Version 1.1.1
<PackageReference Include="MagicCSharp.Testing.Clients" Version="1.1.1" />
<PackageVersion Include="MagicCSharp.Testing.Clients" Version="1.1.1" />
<PackageReference Include="MagicCSharp.Testing.Clients" />
paket add MagicCSharp.Testing.Clients --version 1.1.1
#r "nuget: MagicCSharp.Testing.Clients, 1.1.1"
#:package MagicCSharp.Testing.Clients@1.1.1
#addin nuget:?package=MagicCSharp.Testing.Clients&version=1.1.1
#tool nuget:?package=MagicCSharp.Testing.Clients&version=1.1.1
MagicCSharp.Testing.Clients
Keeps [MagicClient] interfaces honest against the service they call. A client's path is written in its route
attributes and again on the server's controller; this check fails the server's tests when the two drift, so the
client needs no per-method path tests.
dotnet add package MagicCSharp.Testing.Clients
In the server's controller test project, which references both the server and its client library (the server itself never references its own client):
[Fact]
public void EveryLeasesClientRoute_IsServedByTheLeasingService()
{
ClientRouteCheck.AssertEveryClientRouteIsServed(typeof(ILeasesClient).Assembly, typeof(LeasesController).Assembly);
}
The server's routes come from MVC's own action model, so area, controller and action tokens, inherited routes
and ~/ read as they do in production; no host starts and no controller is constructed. Paths compare
case-insensitively, {leaseId} matches {id:long}, and an optional {id?} matches with or without it. The check
also fails when either assembly has no routes at all, which means the test named the wrong assembly.
ClientRouteCheck.CheckClientRoutes returns what was found on both sides for a test that asserts on it itself.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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. |
-
net9.0
- MagicCSharp.Clients (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.