Пример #1
0
 public virtual void StartTestRecording()
 {
     // Only create test recordings for the latest version of the service
     TestContext.TestAdapter test = TestContext.CurrentContext.Test;
     if (Mode != RecordedTestMode.Live &&
         test.Properties.ContainsKey("SkipRecordings"))
     {
         throw new IgnoreException((string)test.Properties.Get("SkipRecordings"));
     }
     Recording = new TestRecording(Mode, GetSessionFilePath(), Sanitizer, Matcher);
 }
Пример #2
0
 public DisableRecordingScope(TestRecording testRecording)
 {
     _testRecording = testRecording;
     _testRecording._disableRecording.Value = true;
 }
Пример #3
0
 public void SetRecording(TestRecording recording, bool playback)
 {
     _credential = null;
     _recording  = recording;
     _playback   = playback;
 }
 public virtual void StartTestRecording()
 {
     Recording = new TestRecording(Mode, GetSessionFilePath(), Sanitizer, Matcher);
 }
Пример #5
0
 public void SetRecording(TestRecording recording)
 {
     _credential = null;
     _recording  = recording;
 }
 public virtual void StartTestRecording()
 {
     Recording = new TestRecording(Mode, SessionFilePath, Sanitizer, Matcher);
     Recording.Start();
 }