Exemple #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);
 }
Exemple #2
0
 public DisableRecordingScope(TestRecording testRecording)
 {
     _testRecording = testRecording;
     _testRecording._disableRecording.Value = true;
 }
Exemple #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);
 }
Exemple #5
0
 public void SetRecording(TestRecording recording)
 {
     _credential = null;
     _recording  = recording;
 }
 public virtual void StartTestRecording()
 {
     Recording = new TestRecording(Mode, SessionFilePath, Sanitizer, Matcher);
     Recording.Start();
 }