Skip to content

Release v19.8.0

Choose a tag to compare

@github-actions github-actions released this 26 Sep 08:32
1adfd3c

Added

  • Testing scenarios accept per-run artifacts. Pass new Defaults(clientArtifactsProvider, serviceProvider) to EventScenario or ReadModelScenario, 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

  • ReadModelScenario seeds and reads read models through the artifacts provider of its own Defaults, 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.