Rask.Testing.Data 0.24.1-alpha.0.1332

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.1332
                    
NuGet\Install-Package Rask.Testing.Data -Version 0.24.1-alpha.0.1332
                    
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.1332" />
                    
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.1332" />
                    
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.1332
                    
#r "nuget: Rask.Testing.Data, 0.24.1-alpha.0.1332"
                    
#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.1332
                    
#: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.1332&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Rask.Testing.Data&version=0.24.1-alpha.0.1332&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.1444 0 12/3/2026
0.24.1-alpha.0.1443 0 12/3/2026
0.24.1-alpha.0.1437 0 12/3/2026
0.24.1-alpha.0.1431 0 12/3/2026
0.24.1-alpha.0.1423 0 12/3/2026
0.24.1-alpha.0.1422 0 12/3/2026
0.24.1-alpha.0.1420 0 12/3/2026
0.24.1-alpha.0.1419 10 12/2/2026
0.24.1-alpha.0.1409 39 12/2/2026
0.24.1-alpha.0.1387 38 12/2/2026
0.24.1-alpha.0.1386 37 12/2/2026
0.24.1-alpha.0.1377 39 12/2/2026
0.24.1-alpha.0.1371 43 12/2/2026
0.24.1-alpha.0.1332 38 12/2/2026
0.24.1-alpha.0.1331 40 12/2/2026
0.24.1-alpha.0.1328 43 12/2/2026
0.24.1-alpha.0.1313 40 12/2/2026
0.24.1-alpha.0.1301 41 12/2/2026
0.24.1-alpha.0.1283 45 12/2/2026
0.24.1-alpha.0.1270 45 12/1/2026
Loading failed