Repository navigation
Release v19.8.0
Added
- Testing scenarios accept per-run artifacts. Pass
new Defaults(clientArtifactsProvider, serviceProvider)toEventScenarioorReadModelScenario, so each test run discovers only the artifacts you give it, not the assembly-wide set. EventScenario(Defaults, ICanProvideConstraints?)discovers constraints from the supplied defaults when no constraint provider is passed.ReadModelScenario<TReadModel>.WithProjection(Action<IProjectionBuilderFor<TReadModel>>)defines a projection inline for a single scenario. It takes precedence over discovered projections and reducers, and it does not leak into other runs.
Fixed
ReadModelScenarioseeds and reads read models through the artifacts provider of its ownDefaults, instead of always using the process-wide provider.
ReactorScenario still uses the process-wide defaults. It is left for a follow-up because #4210 changes the same file. This is part of #4162.