public void RecordingSessionSanitizeTextBody(string jsonPath, string body, string expected) { var sanitizer = new RecordedTestSanitizer(); sanitizer.AddJsonPathSanitizer(jsonPath); string response = sanitizer.SanitizeTextBody(default, body);
public EventGridLiveTestBase(bool isAsync) : base(isAsync /*, RecordedTestMode.Record*/) { Sanitizer = new RecordedTestSanitizer(); Sanitizer.SanitizedHeaders.Add(Constants.SasKeyName); Sanitizer.SanitizedHeaders.Add(Constants.SasTokenName); Sanitizer.AddJsonPathSanitizer("$..traceparent"); }