Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ file.

## Features

`EasyVCR` comes with a number of features, many of which can be customized via the `AdvancedOptions` class.
`EasyVCR` comes with a number of features, many of which can be customized via the `AdvancedSettings` class.

### Censoring

Expand Down Expand Up @@ -94,7 +94,7 @@ var censors = new Censors().CensorHeaders(headerCensors)
.CensorBodyElements(bodyCensors)
.CensorPathElements(pathCensors);

var advancedOptions = new AdvancedOptions()
var advancedSettings = new AdvancedSettings()
{
Censors = censors
};
Expand All @@ -115,7 +115,7 @@ to the millisecond.
using EasyVCR;

var cassette = new Cassette("path/to/cassettes", "my_cassette");
var advancedOptions = new AdvancedOptions()
var advancedSettings = new AdvancedSettings()
{
SimulateDelay = true, // Simulate a delay of the original request duration when replaying (overrides ManualDelay)
ManualDelay = 1000 // Simulate a delay of 1000 milliseconds when replaying
Expand All @@ -134,7 +134,7 @@ Set expiration dates for recorded requests, and decide what to do with expired r
using EasyVCR;

var cassette = new Cassette("path/to/cassettes", "my_cassette");
var advancedOptions = new AdvancedOptions()
var advancedSettings = new AdvancedSettings()
{
ValidTimeFrame = new TimeFrame() { // Any matching request is considered expired if it was recorded more than 30 days ago
Days = 30,
Expand All @@ -155,7 +155,7 @@ Customize how a recorded request is determined to be a match to the current requ
using EasyVCR;

var cassette = new Cassette("path/to/cassettes", "my_cassette");
var advancedOptions = new AdvancedOptions()
var advancedSettings = new AdvancedSettings()
{
MatchRules = new MatchRules().ByBody().ByHeader("X-My-Header"), // Match recorded requests by body and a specific header
};
Expand Down Expand Up @@ -191,7 +191,7 @@ Have EasyVCR integrate with your custom logger to log warnings and errors.
using EasyVCR;

var cassette = new Cassette("path/to/cassettes", "my_cassette");
var advancedOptions = new AdvancedOptions()
var advancedSettings = new AdvancedSettings()
{
Logger = new MyCustomLogger(), // Have EasyVCR use your custom logger when making log entries
};
Expand All @@ -209,7 +209,7 @@ Useful if `HttpClient` suffers breaking changes in future .NET versions.
using EasyVCR;

var cassette = new Cassette("path/to/cassettes", "my_cassette");
var advancedOptions = new AdvancedOptions()
var advancedSettings = new AdvancedSettings()
{
InteractionConverter = new MyInteractionConverter(), // use a custom interaction converter by implementing IInteractionConverter
};
Expand Down
Loading