Small test-only helpers for Atya packages and applications.
This package is intended for test projects only. Production projects should not reference it.
FakeClockexposes controllableUtcNow,Now, andTodayvalues.JsonAssertcompares JSON structurally, ignoring formatting and property order.FakeCorrelationIdAccessorprovides a mutable correlation id for diagnostics tests.FakeCurrentUserprovides a mutable authenticated or anonymous current user.ResultAssertionschecks common result-like shapes without referencing a specific result package.ValidationFailureBuildercreates framework-neutral validation failure data.
Restore, build, and test from the repository root:
dotnet restore .\Testing.sln
dotnet build .\Testing.sln --configuration Release --no-restore -m:1
dotnet test .\Testing.sln --configuration Release --no-build -m:1Pack the library:
dotnet pack .\src\Testing\Testing.csproj --configuration Release --output .\artifacts\packagesPackages are published to nuget.org automatically when changes are merged into master.
Configure a GitHub Actions repository secret named NUGET_API_KEY with a nuget.org API key that has permission to push Atya.Governance.Testing.
NuGet package versions are immutable. Update the package <Version> in src/Testing/Testing.csproj before merging a release change, otherwise nuget.org will reject the already-published version.
For local package-feed publishing, see LOCAL_NUGET.md.