Rask.Testing.Data 0.24.1-alpha.0.1301

This is a prerelease version of Rask.Testing.Data.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Rask.Testing.Data --version 0.24.1-alpha.0.1301
                    
NuGet\Install-Package Rask.Testing.Data -Version 0.24.1-alpha.0.1301
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rask.Testing.Data" Version="0.24.1-alpha.0.1301" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rask.Testing.Data" Version="0.24.1-alpha.0.1301" />
                    
Directory.Packages.props
<PackageReference Include="Rask.Testing.Data" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rask.Testing.Data --version 0.24.1-alpha.0.1301
                    
#r "nuget: Rask.Testing.Data, 0.24.1-alpha.0.1301"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rask.Testing.Data@0.24.1-alpha.0.1301
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rask.Testing.Data&version=0.24.1-alpha.0.1301&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Rask.Testing.Data&version=0.24.1-alpha.0.1301&prerelease
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed