Exemple #1
0
 public void Sanitize(RecordedTestSanitizer sanitizer)
 {
     lock (Entries)
     {
         sanitizer.Sanitize(this);
     }
 }
Exemple #2
0
        public RecordEntry Lookup(RecordEntry requestEntry, RecordMatcher matcher, RecordedTestSanitizer sanitizer)
        {
            sanitizer.Sanitize(requestEntry);

            lock (Entries)
            {
                RecordEntry entry = matcher.FindMatch(requestEntry, Entries);
                Entries.Remove(entry);
                return(entry);
            }
        }
Exemple #3
0
        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);
            }
        }