diff --git a/src/dotnet/APIView/APIView/Analysis/Analyzer.cs b/src/dotnet/APIView/APIView/Analysis/Analyzer.cs index 2e8c5828446..3d841036717 100644 --- a/src/dotnet/APIView/APIView/Analysis/Analyzer.cs +++ b/src/dotnet/APIView/APIView/Analysis/Analyzer.cs @@ -20,7 +20,6 @@ public Analyzer() _analyzers.Add(new ClientMethodsAnalyzer()); _analyzers.Add(new ClientConstructorAnalyzer()); _analyzers.Add(new ClientOptionsAnalyzer()); - _analyzers.Add(new ClientAssemblyNamespaceAnalyzer()); _analyzers.Add(new BannedAssembliesAnalyzer()); _analyzers.Add(new TypeNameAnalyzer()); } diff --git a/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosPullRequestRepositoryTests.cs b/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosPullRequestRepositoryTests.cs index 82beb720434..5000faa553a 100644 --- a/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosPullRequestRepositoryTests.cs +++ b/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosPullRequestRepositoryTests.cs @@ -13,7 +13,6 @@ namespace APIViewIntegrationTests.RepositoryTests { public class CosmosPullRequestRepositoryTestsBaseFixture : IDisposable { - private IConfigurationRoot _config; private readonly CosmosClient _cosmosClient; private readonly string _cosmosDBname; public CosmosPullRequestsRepository PullRequestRepositopry { get; private set; } @@ -21,21 +20,21 @@ public class CosmosPullRequestRepositoryTestsBaseFixture : IDisposable public CosmosPullRequestRepositoryTestsBaseFixture() { - var _config = new ConfigurationBuilder() + var config = new ConfigurationBuilder() .AddEnvironmentVariables(prefix: "APIVIEW_") .AddUserSecrets(typeof(TestsBaseFixture).Assembly) .Build(); _cosmosDBname = "CosmosPullRequestRepositoryTestsDB"; - _config["CosmosDBName"] = _cosmosDBname; + config["CosmosDBName"] = _cosmosDBname; - _cosmosClient = new CosmosClient(_config["Cosmos:ConnectionString"]); - var dataBaseResponse = _cosmosClient.CreateDatabaseIfNotExistsAsync(_config["CosmosDBName"]).Result; + _cosmosClient = new CosmosClient(config["Cosmos:ConnectionString"]); + var dataBaseResponse = _cosmosClient.CreateDatabaseIfNotExistsAsync(config["CosmosDBName"]).Result; dataBaseResponse.Database.CreateContainerIfNotExistsAsync("Reviews", "/id").Wait(); dataBaseResponse.Database.CreateContainerIfNotExistsAsync("PullRequests", "/ReviewId").Wait(); - ReviewRepository = new CosmosReviewRepository(_config, _cosmosClient); - PullRequestRepositopry = new CosmosPullRequestsRepository(_config, ReviewRepository, _cosmosClient); + ReviewRepository = new CosmosReviewRepository(config, _cosmosClient); + PullRequestRepositopry = new CosmosPullRequestsRepository(config, ReviewRepository, _cosmosClient); PopulateDBWithDummyPullRequestData().Wait(); PopulateDBWithDummyReviewData().Wait(); } diff --git a/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosReviewRepositoryTests.cs b/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosReviewRepositoryTests.cs index fe8ee7beb84..975daab1b95 100644 --- a/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosReviewRepositoryTests.cs +++ b/src/dotnet/APIView/APIViewIntegrationTests/RepositoryTests/CosmosReviewRepositoryTests.cs @@ -13,26 +13,25 @@ namespace APIViewIntegrationTests.RepositoryTests { public class CosmosReviewRepositoryTestsBaseFixture : IDisposable { - private IConfigurationRoot _config; private readonly CosmosClient _cosmosClient; private readonly string _cosmosDBname; public CosmosReviewRepository ReviewRepository { get; private set; } public CosmosReviewRepositoryTestsBaseFixture() { - var _config = new ConfigurationBuilder() + var config = new ConfigurationBuilder() .AddEnvironmentVariables(prefix: "APIVIEW_") .AddUserSecrets(typeof(TestsBaseFixture).Assembly) .Build(); _cosmosDBname = "CosmosReviewRepositoryTestsDB"; - _config["CosmosDBName"] = _cosmosDBname; + config["CosmosDBName"] = _cosmosDBname; - _cosmosClient = new CosmosClient(_config["Cosmos:ConnectionString"]); - var dataBaseResponse = _cosmosClient.CreateDatabaseIfNotExistsAsync(_config["CosmosDBName"]).Result; + _cosmosClient = new CosmosClient(config["Cosmos:ConnectionString"]); + var dataBaseResponse = _cosmosClient.CreateDatabaseIfNotExistsAsync(config["CosmosDBName"]).Result; dataBaseResponse.Database.CreateContainerIfNotExistsAsync("Reviews", "/id").Wait(); - ReviewRepository = new CosmosReviewRepository(_config, _cosmosClient); + ReviewRepository = new CosmosReviewRepository(config, _cosmosClient); PopulateDBWithDummyReviewData().Wait(); }