Skip to main content
Table of Contents

Class StrataraTestWriteDbContext

Namespace
Stratara.Testing.EntityFrameworkCore
Assembly
Stratara.Testing.EntityFrameworkCore.dll

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.

public sealed class StrataraTestWriteDbContext : WriteDbContext<StrataraTestWriteDbContext>, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable, IWriteDbContext, IDbContext
Inheritance
StrataraTestWriteDbContext
Implements
Inherited Members
Extension Methods

Constructors

StrataraTestWriteDbContext(DbContextOptions<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.

public StrataraTestWriteDbContext(DbContextOptions<StrataraTestWriteDbContext> options)

Parameters

options DbContextOptions<StrataraTestWriteDbContext>

The EF Core options (supplied by the test host's SQLite factory).