Namespace Stratara.Testing.EntityFrameworkCore
Classes
- EventStoreTestHost
A self-contained test host that runs the real Stratara event-sourcing write stack against a shared in-memory SQLite database. Construct it once per test, append events through the genuine IEventSource, and read aggregates back through the genuine IAggregationService — exercising production code paths without Postgres or Docker.
- RecordingEventBundleOutboxDispatcher
An IEventBundleOutboxDispatcher test double that records every dispatched bundle instead of publishing to a broker. Lets tests assert which events the write side emitted on
SaveChangesAsyncwithout standing up RabbitMQ or Azure Service Bus.
- StrataraTestWriteDbContext
A ready-made concrete write-store DbContext for tests, so consumers do not have to declare their own
WriteDbContext<T>subclass. It inherits the framework's WriteDbContext<TContext> model (event stream, snapshot, command log, outbox) and runs on any relational provider — the test host points it at SQLite in-memory.