From 94061c6d84a41c91c4ae854cdeb9ccda9e4b36c7 Mon Sep 17 00:00:00 2001 From: Aaron Po Date: Thu, 12 Feb 2026 18:37:28 -0500 Subject: [PATCH] Fix test namespaces and Dockerfile project paths --- .../Auth/AuthRepository.test.cs | 5 ++--- .../Database/TestConnectionFactory.cs | 2 +- .../Infrastructure.Repository.Tests/Dockerfile | 8 ++++---- .../UserAccount/UserAccountRepository.test.cs | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Core/Infrastructure/Infrastructure.Repository.Tests/Auth/AuthRepository.test.cs b/src/Core/Infrastructure/Infrastructure.Repository.Tests/Auth/AuthRepository.test.cs index f8bf9d8..e30ceee 100644 --- a/src/Core/Infrastructure/Infrastructure.Repository.Tests/Auth/AuthRepository.test.cs +++ b/src/Core/Infrastructure/Infrastructure.Repository.Tests/Auth/AuthRepository.test.cs @@ -1,10 +1,9 @@ -using System.Data; using Apps72.Dev.Data.DbMocker; using FluentAssertions; using Infrastructure.Repository.Auth; -using Repository.Tests.Database; +using Infrastructure.Repository.Tests.Database; -namespace Repository.Tests.Auth; +namespace Infrastructure.Repository.Tests.Auth; public class AuthRepositoryTest { diff --git a/src/Core/Infrastructure/Infrastructure.Repository.Tests/Database/TestConnectionFactory.cs b/src/Core/Infrastructure/Infrastructure.Repository.Tests/Database/TestConnectionFactory.cs index f455382..c25f0e1 100644 --- a/src/Core/Infrastructure/Infrastructure.Repository.Tests/Database/TestConnectionFactory.cs +++ b/src/Core/Infrastructure/Infrastructure.Repository.Tests/Database/TestConnectionFactory.cs @@ -1,7 +1,7 @@ using System.Data.Common; using Infrastructure.Repository.Sql; -namespace Repository.Tests.Database; +namespace Infrastructure.Repository.Tests.Database; internal class TestConnectionFactory(DbConnection conn) : ISqlConnectionFactory { diff --git a/src/Core/Infrastructure/Infrastructure.Repository.Tests/Dockerfile b/src/Core/Infrastructure/Infrastructure.Repository.Tests/Dockerfile index 2013eb1..5de992c 100644 --- a/src/Core/Infrastructure/Infrastructure.Repository.Tests/Dockerfile +++ b/src/Core/Infrastructure/Infrastructure.Repository.Tests/Dockerfile @@ -3,13 +3,13 @@ ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["Domain/Domain.csproj", "Domain/"] COPY ["Infrastructure/Infrastructure.Repository/Infrastructure.Repository.csproj", "Infrastructure/Infrastructure.Repository/"] -COPY ["Infrastructure/Infrastructure.Repository.Tests/Repository.Tests.csproj", "Infrastructure/Infrastructure.Repository.Tests/"] -RUN dotnet restore "Infrastructure/Infrastructure.Repository.Tests/Repository.Tests.csproj" +COPY ["Infrastructure/Infrastructure.Repository.Tests/Infrastructure.Repository.Tests.csproj", "Infrastructure/Infrastructure.Repository.Tests/"] +RUN dotnet restore "Infrastructure/Infrastructure.Repository.Tests/Infrastructure.Repository.Tests.csproj" COPY . . WORKDIR "/src/Infrastructure/Infrastructure.Repository.Tests" -RUN dotnet build "./Repository.Tests.csproj" -c $BUILD_CONFIGURATION -o /app/build +RUN dotnet build "./Infrastructure.Repository.Tests.csproj" -c $BUILD_CONFIGURATION -o /app/build FROM build AS final RUN mkdir -p /app/test-results WORKDIR /src/Infrastructure/Infrastructure.Repository.Tests -ENTRYPOINT ["dotnet", "test", "./Repository.Tests.csproj", "-c", "Release", "--logger", "trx;LogFileName=/app/test-results/repository-tests.trx"] +ENTRYPOINT ["dotnet", "test", "./Infrastructure.Repository.Tests.csproj", "-c", "Release", "--logger", "trx;LogFileName=/app/test-results/repository-tests.trx"] diff --git a/src/Core/Infrastructure/Infrastructure.Repository.Tests/UserAccount/UserAccountRepository.test.cs b/src/Core/Infrastructure/Infrastructure.Repository.Tests/UserAccount/UserAccountRepository.test.cs index d395658..9a60162 100644 --- a/src/Core/Infrastructure/Infrastructure.Repository.Tests/UserAccount/UserAccountRepository.test.cs +++ b/src/Core/Infrastructure/Infrastructure.Repository.Tests/UserAccount/UserAccountRepository.test.cs @@ -1,9 +1,9 @@ using Apps72.Dev.Data.DbMocker; using FluentAssertions; +using Infrastructure.Repository.Tests.Database; using Infrastructure.Repository.UserAccount; -using Repository.Tests.Database; -namespace Repository.Tests.UserAccount; +namespace Infrastructure.Repository.Tests.UserAccount; public class UserAccountRepositoryTest {