public RelevancyFactAttribute()
 {
     if (!AzureSearchConfiguration.Create().TestSettings.RunAzureSearchRelevancyTests)
     {
         Skip = "Azure search Relevancy tests are disabled";
     }
 }
        public static async Task <AzureSearchConfiguration> CreateAsync()
        {
            if (_configuration != null)
            {
                return(_configuration);
            }

            try
            {
                await _semaphore.WaitAsync();

                if (_configuration != null)
                {
                    return(_configuration);
                }

                _configuration = CreateInternal();
            }
            finally
            {
                _semaphore.Release();
            }

            return(_configuration);
        }
 public AnalysisFactAttribute()
 {
     if (!AzureSearchConfiguration.Create().TestSettings.RunAzureSearchAnalysisTests)
     {
         Skip = "Azure Search Analyzer tests are disabled";
     }
 }
Esempio n. 4
0
 public async Task InitializeAsync()
 {
     AzureSearchConfiguration = await AzureSearchConfiguration.CreateAsync();
 }