Class TestScenarioSnapshotExtensions
- Namespace
- XBullet.EasyTesting.Snapshots
- Assembly
- XBullet.EasyTesting.Snapshots.Http.dll
Creates fluent scenarios configured for complete HTTP exchange snapshots.
public static class TestScenarioSnapshotExtensions
- Inheritance
-
TestScenarioSnapshotExtensions
- Inherited Members
Methods
SnapshotScenario<TEntryPoint>(TestScenarioScope<TEntryPoint>, Action<HttpExchangeSnapshotOptions>)
Starts a fluent snapshot scenario and configures its recorder options inline.
public static TestScenarioBuilder<TEntryPoint> SnapshotScenario<TEntryPoint>(this TestScenarioScope<TEntryPoint> scope, Action<HttpExchangeSnapshotOptions> configureExchange) where TEntryPoint : class
Parameters
scopeTestScenarioScope<TEntryPoint>The non-null, active scenario scope that creates the client.
configureExchangeAction<HttpExchangeSnapshotOptions>A non-null callback invoked once with independent options based on the effective global or package defaults before the recorder is created.
Returns
- TestScenarioBuilder<TEntryPoint>
A new single-use scenario builder with a configured HttpExchangeRecorder attached.
Type Parameters
TEntryPointThe application entry-point type hosted by the scenario scope.
SnapshotScenario<TEntryPoint>(TestScenarioScope<TEntryPoint>, HttpExchangeSnapshotOptions?)
Starts a fluent scenario whose client records the request before transport and associates the captured exchange with its response.
public static TestScenarioBuilder<TEntryPoint> SnapshotScenario<TEntryPoint>(this TestScenarioScope<TEntryPoint> scope, HttpExchangeSnapshotOptions? options = null) where TEntryPoint : class
Parameters
scopeTestScenarioScope<TEntryPoint>The non-null, active scenario scope that creates the client.
optionsHttpExchangeSnapshotOptionsOptional capture, redaction, and format options. null resolves the effective global or package defaults when the recorder is created.
Returns
- TestScenarioBuilder<TEntryPoint>
A new single-use scenario builder with an HttpExchangeRecorder attached.
Type Parameters
TEntryPointThe application entry-point type hosted by the scenario scope.