Пример #1
0
 public void Sanitize(RecordedTestSanitizer sanitizer)
 {
     lock (Entries)
     {
         sanitizer.Sanitize(this);
     }
 }
Пример #2
0
 public void Sanitize(RecordedTestSanitizer sanitizer)
 {
     lock (Entries)
     {
         foreach (RecordEntry entry in Entries)
         {
             sanitizer.Sanitize(entry);
         }
     }
 }
Пример #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);
            }
        }
Пример #4
0
        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);
                }
            }
        }