Rask.Testing.Data
0.24.1-alpha.0.1196
See the version list below for details.
dotnet add package Rask.Testing.Data --version 0.24.1-alpha.0.1196
NuGet\Install-Package Rask.Testing.Data -Version 0.24.1-alpha.0.1196
<PackageReference Include="Rask.Testing.Data" Version="0.24.1-alpha.0.1196" />
<PackageVersion Include="Rask.Testing.Data" Version="0.24.1-alpha.0.1196" />
<PackageReference Include="Rask.Testing.Data" />
paket add Rask.Testing.Data --version 0.24.1-alpha.0.1196
#r "nuget: Rask.Testing.Data, 0.24.1-alpha.0.1196"
#:package Rask.Testing.Data@0.24.1-alpha.0.1196
#addin nuget:?package=Rask.Testing.Data&version=0.24.1-alpha.0.1196&prerelease
#tool nuget:?package=Rask.Testing.Data&version=0.24.1-alpha.0.1196&prerelease
Rask.Testing.Data
The half of Rask.Testing that needs Rask.Data, so a test project
that only renders components never pulls in EF Core. Reference it beside Rask.Testing from the test project of an
app that stores data.
dotnet add package Rask.Testing
dotnet add package Rask.Testing.Data
Data the way the app makes it
A test makes its data the way the app does — through the aggregate's own generated entries, with the values the test
cares about written out: await Supply.Create(acme, SupplyNumber.Create("S-1"), parts). There is no second,
test-only way to make an aggregate, so a test exercises the same rules a page does.
Signed in for the rest of the test: Test.SignIn
using var ann = Test.SignIn("ann@x.io", roles: ["Admin"], tenant: acme.Id);
Current.UserId, Current.IsInRole, the tenant filter and the audit stamps all see Ann until the scope is disposed.
A state the aggregate would not make: database.Arrange / database.ArrangeGone
Setup a test needs and no operation leads to — a legacy row, a user moved to another tenant, a period closed under a note — written straight to the table, one statement each, the rows written handed back:
await database.Arrange<Period>(p => p.Id == id, set => set.SetProperty(p => p.Closed, true));
await database.ArrangeGone<User>(u => u.Id == anna);
Every tenant's rows, no filter, no lock, no UpdatedAt/Version stamp, no live notice — setup, never the write under
test, which goes through the aggregate (X.UpdateWhere, X.DeleteWhere). RASK187 does not report them.
See the testing guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Rask.Data (>= 0.24.1-alpha.0.1196)
- Rask.Testing (>= 0.24.1-alpha.0.1196)
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 |
|---|---|---|
| 0.24.1-alpha.0.1328 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1313 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1301 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1283 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1270 | 0 | 12/1/2026 |
| 0.24.1-alpha.0.1269 | 0 | 12/1/2026 |
| 0.24.1-alpha.0.1266 | 36 | 12/1/2026 |
| 0.24.1-alpha.0.1226 | 40 | 12/1/2026 |
| 0.24.1-alpha.0.1215 | 39 | 12/1/2026 |
| 0.24.1-alpha.0.1214 | 42 | 12/1/2026 |
| 0.24.1-alpha.0.1196 | 46 | 12/1/2026 |
| 0.24.1-alpha.0.1195 | 42 | 12/1/2026 |
| 0.24.1-alpha.0.1188 | 40 | 12/1/2026 |
| 0.24.1-alpha.0.1187 | 39 | 12/1/2026 |
| 0.24.1-alpha.0.1152 | 56 | 11/30/2026 |
| 0.24.1-alpha.0.1147 | 52 | 11/30/2026 |
| 0.24.1-alpha.0.1145 | 59 | 11/30/2026 |
| 0.24.1-alpha.0.1139 | 58 | 11/30/2026 |
| 0.24.1-alpha.0.1120 | 56 | 11/30/2026 |
| 0.24.1-alpha.0.1118 | 55 | 11/30/2026 |