Remote / An event-sourced domain behind Remote
Testing it
| What you want to know | Use |
|---|---|
| The Aggregate records and rejects what it should | Domain's Story (given, when, then) and Domain.verify |
| The declarations agree with each other | Laws.check, which reads only declarations (Laws) |
| Two authorities decide a write alike | Scenario from foldkit-remote/testing, run on each |
| The page behaves against the real model | Fixture.make from foldkit-remote-domain/testing |
| The page's prediction matches what Domain answers | Law.check through the adapter |
Fixture.make hosts the model in memory and holds View deliveries until you
call drain, so a test can show the page a View that is behind.