diff --git a/EstateReportingAPI.BusinessLogic/EstateReportingAPI.BusinessLogic.csproj b/EstateReportingAPI.BusinessLogic/EstateReportingAPI.BusinessLogic.csproj index 2277c50..8a09a85 100644 --- a/EstateReportingAPI.BusinessLogic/EstateReportingAPI.BusinessLogic.csproj +++ b/EstateReportingAPI.BusinessLogic/EstateReportingAPI.BusinessLogic.csproj @@ -7,10 +7,10 @@ - - - - + + + + diff --git a/EstateReportingAPI.Client/EstateReportingAPI.Client.csproj b/EstateReportingAPI.Client/EstateReportingAPI.Client.csproj index 330e90a..1a60ca7 100644 --- a/EstateReportingAPI.Client/EstateReportingAPI.Client.csproj +++ b/EstateReportingAPI.Client/EstateReportingAPI.Client.csproj @@ -7,9 +7,9 @@ - - - + + + diff --git a/EstateReportingAPI.DataTrasferObjects/EstateReportingAPI.DataTransferObjects.csproj b/EstateReportingAPI.DataTrasferObjects/EstateReportingAPI.DataTransferObjects.csproj index 398bf12..63e3607 100644 --- a/EstateReportingAPI.DataTrasferObjects/EstateReportingAPI.DataTransferObjects.csproj +++ b/EstateReportingAPI.DataTrasferObjects/EstateReportingAPI.DataTransferObjects.csproj @@ -7,7 +7,7 @@ - + diff --git a/EstateReportingAPI.IntegrationTests/CustomWebApplicationFactory.cs b/EstateReportingAPI.IntegrationTests/CustomWebApplicationFactory.cs index 2f7c46c..d578530 100644 --- a/EstateReportingAPI.IntegrationTests/CustomWebApplicationFactory.cs +++ b/EstateReportingAPI.IntegrationTests/CustomWebApplicationFactory.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using Microsoft.Data.SqlClient; using Microsoft.Extensions.Configuration; -using Shared.Repositories; using TransactionProcessor.Database.Contexts; namespace EstateReportingAPI.IntegrationTests; diff --git a/EstateReportingAPI.IntegrationTests/EstateReportingAPI.IntegrationTests.csproj b/EstateReportingAPI.IntegrationTests/EstateReportingAPI.IntegrationTests.csproj index 953e181..308829a 100644 --- a/EstateReportingAPI.IntegrationTests/EstateReportingAPI.IntegrationTests.csproj +++ b/EstateReportingAPI.IntegrationTests/EstateReportingAPI.IntegrationTests.csproj @@ -7,12 +7,12 @@ - - - - + + + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -21,15 +21,15 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - + + + + + + + + + diff --git a/EstateReportingAPI.Tests/EstateReportingAPI.Tests.csproj b/EstateReportingAPI.Tests/EstateReportingAPI.Tests.csproj index 132fad3..c5feba4 100644 --- a/EstateReportingAPI.Tests/EstateReportingAPI.Tests.csproj +++ b/EstateReportingAPI.Tests/EstateReportingAPI.Tests.csproj @@ -7,21 +7,21 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/EstateReportingAPI/Bootstrapper/RepositoryRegistry.cs b/EstateReportingAPI/Bootstrapper/RepositoryRegistry.cs index 5212855..dc22aea 100644 --- a/EstateReportingAPI/Bootstrapper/RepositoryRegistry.cs +++ b/EstateReportingAPI/Bootstrapper/RepositoryRegistry.cs @@ -7,9 +7,7 @@ namespace EstateReportingAPI.Bootstrapper; using Lamar; using Microsoft.EntityFrameworkCore; using Shared.EntityFramework; -using Shared.EntityFramework.ConnectionStringConfiguration; using Shared.General; -using Shared.Repositories; using System.Diagnostics.CodeAnalysis; [ExcludeFromCodeCoverage] diff --git a/EstateReportingAPI/Common/ConfigurationReaderConnectionStringRepository.cs b/EstateReportingAPI/Common/ConfigurationReaderConnectionStringRepository.cs deleted file mode 100644 index 5a2f2bc..0000000 --- a/EstateReportingAPI/Common/ConfigurationReaderConnectionStringRepository.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Microsoft.Data.SqlClient; -using Shared.General; -using Shared.Repositories; -using System.Data.Common; -using System.Diagnostics.CodeAnalysis; - -namespace EstateReportingAPI.Common -{ - [ExcludeFromCodeCoverage] - public class ConfigurationReaderConnectionStringRepository : IConnectionStringConfigurationRepository - { - #region Methods - - public async Task CreateConnectionString(String externalIdentifier, - String connectionStringIdentifier, - String connectionString, - CancellationToken cancellationToken) - { - throw new NotImplementedException("This is only required to complete the interface"); - } - - public async Task DeleteConnectionStringConfiguration(String externalIdentifier, - String connectionStringIdentifier, - CancellationToken cancellationToken) - { - throw new NotImplementedException("This is only required to complete the interface"); - } - - public async Task GetConnectionString(String externalIdentifier, - String connectionStringIdentifier, - CancellationToken cancellationToken) - { - String connectionString = string.Empty; - String databaseName = string.Empty; - - databaseName = $"{connectionStringIdentifier}{externalIdentifier}"; - connectionString = ConfigurationReader.GetConnectionString(connectionStringIdentifier); - - DbConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectionString) - { - InitialCatalog = databaseName - }; - - - return builder.ToString(); - } - - #endregion - } -} diff --git a/EstateReportingAPI/EstateReportingAPI.csproj b/EstateReportingAPI/EstateReportingAPI.csproj index 0b4aeda..224d1bf 100644 --- a/EstateReportingAPI/EstateReportingAPI.csproj +++ b/EstateReportingAPI/EstateReportingAPI.csproj @@ -10,33 +10,33 @@ - - - - + + + + - - - - + + + + - - - - - - - - - - + + + + + + + + + +