public void Sanitize(RecordedTestSanitizer sanitizer) { lock (Entries) { sanitizer.Sanitize(this); } }
public void Sanitize(RecordedTestSanitizer sanitizer) { lock (Entries) { foreach (RecordEntry entry in Entries) { sanitizer.Sanitize(entry); } } }
public RecordEntry Lookup(Request request, RecordMatcher matcher, RecordedTestSanitizer sanitizer) { var requestEntry = RecordTransport.CreateEntry(request, null); sanitizer.Sanitize(requestEntry); lock (Entries) { RecordEntry entry = matcher.FindMatch(requestEntry, Entries); Entries.Remove(entry); return(entry); } }
public void Sanitize(RecordedTestSanitizer sanitizer) { lock (Entries) { foreach (RecordEntry entry in Entries) { sanitizer.Sanitize(entry); } foreach (var variable in Variables.ToArray()) { Variables[variable.Key] = sanitizer.SanitizeVariable(variable.Key, variable.Value); } } }