Definition
Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: CloudNimble.Breakdance.Assemblies.Http Inheritance: CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Summary
A DelegatingHandler that replays previously captured HTTP responses from snapshot files.Remarks
This handler intercepts outgoing HTTP requests and returns responses from snapshot files instead of making actual network calls. This enables deterministic testing against real response data without hitting live endpoints. Response snapshots are typically captured using ResponseSnapshotCaptureHandler during an initial recording phase, then replayed during test execution.Examples
Constructors
.ctor
Creates a new ResponseSnapshotReplayHandler that reads response snapshots from the specified path.Syntax
Parameters
.ctor Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Examples
Properties
ResponseSnapshotsPath Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Property Value
Type:string
Methods
GetFileExtensionString Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Returns
Type:string
The file extension string for the request’s Accept header.
Exceptions
GetPathInfo Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Returns
Type:(string, string)
A tuple containing the directory path and file path components.
Exceptions
GetResponseMediaTypeString Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Returns
Type:string
The MIME type string for the file extension.