예제 #1
0
 /// <summary>
 /// Creates a new SearchTestBase instance.
 /// </summary>
 /// <param name="async">
 /// When false, we'll rewrite our tests methods to call the sync
 /// versions of async APIs.
 /// </param>
 /// <param name="serviceVersion">
 /// Version of the REST API to test against.
 /// </param>
 /// <param name="mode">
 /// Whether to run in Playback, Record, or Live mode.  The default
 /// value is pulled from the AZURE_TEST_MODE environment variable.
 /// </param>
 public SearchTestBase(bool async, SearchClientOptions.ServiceVersion serviceVersion, RecordedTestMode?mode = null)
     : base(async, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
 {
     ServiceVersion = serviceVersion;
     Sanitizer      = new SearchRecordedTestSanitizer();
     Matcher        = new RecordMatcher(compareBodies: false);
 }
 public CertificatesTestBase(bool isAsync, CertificateClientOptions.ServiceVersion serviceVersion, RecordedTestMode?mode)
     : base(isAsync, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
 {
     _serviceVersion = serviceVersion;
 }
예제 #3
0
 protected SecretsTestBase(bool isAsync, SecretClientOptions.ServiceVersion serviceVersion, RecordedTestMode?mode)
     : base(isAsync, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
 {
     _serviceVersion = serviceVersion;
 }
 protected AdministrationTestBase(bool isAsync, RecordedTestMode?mode)
     : base(isAsync, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
 {
 }
예제 #5
0
 public StorageTestBase(bool async, RecordedTestMode?mode = null)
     : base(async, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
 {
     Sanitizer = new StorageRecordedTestSanitizer();
     Matcher   = new StorageRecordMatcher(Sanitizer);
 }
 public DocumentTranslationLiveTestBase(bool isAsync, RecordedTestMode?mode = null)
     : base(isAsync, mode ?? RecordedTestUtilities.GetModeFromEnvironment())
 {
     Sanitizer = new DocumentTranslationRecordedTestSanitizer();
 }
예제 #7
0
 protected KeysTestBase(bool isAsync, KeyClientOptions.ServiceVersion serviceVersion, RecordedTestMode?mode)
     : base(isAsync, mode ?? RecordedTestUtilities.GetModeFromEnvironment() /* RecordedTestMode.Record */)
 {
     _serviceVersion = serviceVersion;
 }