From fe7b7c516b852ddd52a93fcb60371a978cee99ad Mon Sep 17 00:00:00 2001 From: omid ahmadpour <ahmadpooromid@gmail.com> Date: Sat, 19 Oct 2024 10:44:01 +0200 Subject: [PATCH] use better name for api test project. adjust test project folder structure. --- CleanTemplate.sln | 24 +++++++++---------- .../CleanTemplate.Api.EndToEndTests.csproj} | 0 .../ProductControllerTests.cs | 2 +- .../AddProductCommandHandlerTests.cs | 0 .../CleanTemplate.CommandHandler.Tests.csproj | 0 .../CreateUserCommandHandlerTests.cs | 0 .../LoginCommandHandlerTests.cs | 0 .../RefreshTokenCommandHandlerTests.cs | 0 8 files changed, 13 insertions(+), 13 deletions(-) rename test/{CleanTemplate.Api.IntegrationTests/CleanTemplate.Api.IntegrationTests.csproj => CleanTemplate.Api.EndToEndTests/CleanTemplate.Api.EndToEndTests.csproj} (100%) rename test/{CleanTemplate.Api.IntegrationTests => CleanTemplate.Api.EndToEndTests}/ProductControllerTests.cs (98%) rename test/{CleanTemplate.CommandHandler.Test => CleanTemplate.CommandHandler.Tests}/AddProductCommandHandlerTests.cs (100%) rename test/{CleanTemplate.CommandHandler.Test => CleanTemplate.CommandHandler.Tests}/CleanTemplate.CommandHandler.Tests.csproj (100%) rename test/{CleanTemplate.CommandHandler.Test => CleanTemplate.CommandHandler.Tests}/CreateUserCommandHandlerTests.cs (100%) rename test/{CleanTemplate.CommandHandler.Test => CleanTemplate.CommandHandler.Tests}/LoginCommandHandlerTests.cs (100%) rename test/{CleanTemplate.CommandHandler.Test => CleanTemplate.CommandHandler.Tests}/RefreshTokenCommandHandlerTests.cs (100%) diff --git a/CleanTemplate.sln b/CleanTemplate.sln index 117da68..9d08188 100644 --- a/CleanTemplate.sln +++ b/CleanTemplate.sln @@ -25,9 +25,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanTemplate.Api", "src\We EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{7C72E0CA-895D-4676-BEBA-2ADB297F1164}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanTemplate.CommandHandler.Tests", "test\CleanTemplate.CommandHandler.Test\CleanTemplate.CommandHandler.Tests.csproj", "{917A5A94-07E5-4045-964C-F7DF48B22FF2}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanTemplate.CommandHandler.Tests", "test\CleanTemplate.CommandHandler.Tests\CleanTemplate.CommandHandler.Tests.csproj", "{6C1E1613-D92F-4A7A-A360-EDFB69C1DD9C}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanTemplate.Api.IntegrationTests", "test\CleanTemplate.Api.IntegrationTests\CleanTemplate.Api.IntegrationTests.csproj", "{7C6D3A35-564A-4524-8AC6-F3E69A5757E8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanTemplate.Api.EndToEndTests", "test\CleanTemplate.Api.EndToEndTests\CleanTemplate.Api.EndToEndTests.csproj", "{5C466BC5-7923-4C07-8EF0-393A3E81A231}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -59,14 +59,14 @@ Global {91374971-8444-4CF7-A21F-5BF08111848E}.Debug|Any CPU.Build.0 = Debug|Any CPU {91374971-8444-4CF7-A21F-5BF08111848E}.Release|Any CPU.ActiveCfg = Release|Any CPU {91374971-8444-4CF7-A21F-5BF08111848E}.Release|Any CPU.Build.0 = Release|Any CPU - {917A5A94-07E5-4045-964C-F7DF48B22FF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {917A5A94-07E5-4045-964C-F7DF48B22FF2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {917A5A94-07E5-4045-964C-F7DF48B22FF2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {917A5A94-07E5-4045-964C-F7DF48B22FF2}.Release|Any CPU.Build.0 = Release|Any CPU - {7C6D3A35-564A-4524-8AC6-F3E69A5757E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7C6D3A35-564A-4524-8AC6-F3E69A5757E8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7C6D3A35-564A-4524-8AC6-F3E69A5757E8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7C6D3A35-564A-4524-8AC6-F3E69A5757E8}.Release|Any CPU.Build.0 = Release|Any CPU + {6C1E1613-D92F-4A7A-A360-EDFB69C1DD9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C1E1613-D92F-4A7A-A360-EDFB69C1DD9C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C1E1613-D92F-4A7A-A360-EDFB69C1DD9C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C1E1613-D92F-4A7A-A360-EDFB69C1DD9C}.Release|Any CPU.Build.0 = Release|Any CPU + {5C466BC5-7923-4C07-8EF0-393A3E81A231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5C466BC5-7923-4C07-8EF0-393A3E81A231}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5C466BC5-7923-4C07-8EF0-393A3E81A231}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5C466BC5-7923-4C07-8EF0-393A3E81A231}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -81,8 +81,8 @@ Global {238972C8-A659-488D-9E17-8A1B3E820ECB} = {68887AB6-40EA-4A94-A211-774CA12E5C42} {4323D8A3-82BB-4C33-8687-AF2E5ADFA191} = {238972C8-A659-488D-9E17-8A1B3E820ECB} {91374971-8444-4CF7-A21F-5BF08111848E} = {238972C8-A659-488D-9E17-8A1B3E820ECB} - {917A5A94-07E5-4045-964C-F7DF48B22FF2} = {7C72E0CA-895D-4676-BEBA-2ADB297F1164} - {7C6D3A35-564A-4524-8AC6-F3E69A5757E8} = {7C72E0CA-895D-4676-BEBA-2ADB297F1164} + {6C1E1613-D92F-4A7A-A360-EDFB69C1DD9C} = {7C72E0CA-895D-4676-BEBA-2ADB297F1164} + {5C466BC5-7923-4C07-8EF0-393A3E81A231} = {7C72E0CA-895D-4676-BEBA-2ADB297F1164} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D550EB2A-3876-4261-981F-44C6D936D367} diff --git a/test/CleanTemplate.Api.IntegrationTests/CleanTemplate.Api.IntegrationTests.csproj b/test/CleanTemplate.Api.EndToEndTests/CleanTemplate.Api.EndToEndTests.csproj similarity index 100% rename from test/CleanTemplate.Api.IntegrationTests/CleanTemplate.Api.IntegrationTests.csproj rename to test/CleanTemplate.Api.EndToEndTests/CleanTemplate.Api.EndToEndTests.csproj diff --git a/test/CleanTemplate.Api.IntegrationTests/ProductControllerTests.cs b/test/CleanTemplate.Api.EndToEndTests/ProductControllerTests.cs similarity index 98% rename from test/CleanTemplate.Api.IntegrationTests/ProductControllerTests.cs rename to test/CleanTemplate.Api.EndToEndTests/ProductControllerTests.cs index 385197d..e961db0 100644 --- a/test/CleanTemplate.Api.IntegrationTests/ProductControllerTests.cs +++ b/test/CleanTemplate.Api.EndToEndTests/ProductControllerTests.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; using Xunit; -namespace CleanTemplate.Api.IntegrationTests +namespace CleanTemplate.Api.EndToEndTests { public class ProductControllerTests : IClassFixture<WebApplicationFactory<Program>> { diff --git a/test/CleanTemplate.CommandHandler.Test/AddProductCommandHandlerTests.cs b/test/CleanTemplate.CommandHandler.Tests/AddProductCommandHandlerTests.cs similarity index 100% rename from test/CleanTemplate.CommandHandler.Test/AddProductCommandHandlerTests.cs rename to test/CleanTemplate.CommandHandler.Tests/AddProductCommandHandlerTests.cs diff --git a/test/CleanTemplate.CommandHandler.Test/CleanTemplate.CommandHandler.Tests.csproj b/test/CleanTemplate.CommandHandler.Tests/CleanTemplate.CommandHandler.Tests.csproj similarity index 100% rename from test/CleanTemplate.CommandHandler.Test/CleanTemplate.CommandHandler.Tests.csproj rename to test/CleanTemplate.CommandHandler.Tests/CleanTemplate.CommandHandler.Tests.csproj diff --git a/test/CleanTemplate.CommandHandler.Test/CreateUserCommandHandlerTests.cs b/test/CleanTemplate.CommandHandler.Tests/CreateUserCommandHandlerTests.cs similarity index 100% rename from test/CleanTemplate.CommandHandler.Test/CreateUserCommandHandlerTests.cs rename to test/CleanTemplate.CommandHandler.Tests/CreateUserCommandHandlerTests.cs diff --git a/test/CleanTemplate.CommandHandler.Test/LoginCommandHandlerTests.cs b/test/CleanTemplate.CommandHandler.Tests/LoginCommandHandlerTests.cs similarity index 100% rename from test/CleanTemplate.CommandHandler.Test/LoginCommandHandlerTests.cs rename to test/CleanTemplate.CommandHandler.Tests/LoginCommandHandlerTests.cs diff --git a/test/CleanTemplate.CommandHandler.Test/RefreshTokenCommandHandlerTests.cs b/test/CleanTemplate.CommandHandler.Tests/RefreshTokenCommandHandlerTests.cs similarity index 100% rename from test/CleanTemplate.CommandHandler.Test/RefreshTokenCommandHandlerTests.cs rename to test/CleanTemplate.CommandHandler.Tests/RefreshTokenCommandHandlerTests.cs