From ced1f778c4dbc3c84d5b47f566699d1f3fda388f Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sat, 15 Aug 2026 04:23:34 -0700 Subject: [PATCH] Standardizes test projects against conventions --- src/Lumina.sln | 17 +++++++++++++- .../Enums/PhotoLibrary/ImageTypeFixture.cs | 2 +- ...Lumina.Domain.SharedKernel.Fixtures.csproj | 22 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 13 +++++++++++ .../GetPermissionsEndpointTests.cs | 6 ++--- .../Roles/AddRoleEndpointTests.cs | 8 +++---- .../Roles/DeleteRoleEndpointTests.cs | 10 ++++----- .../Roles/GetRolePermissionsEndpointTests.cs | 8 +++---- .../Roles/GetRolesEndpointTests.cs | 6 ++--- .../Roles/UpdateRoleEndpointTests.cs | 8 +++---- .../GetDirectoriesEndpointTests.cs | 8 +++---- .../Drives/GetDrivesEndpointTests.cs | 2 +- .../FileSystem/GetTypeEndpointTests.cs | 6 ++--- .../Files/GetFilesEndpointTests.cs | 14 ++++++------ .../Files/GetTreeFilesEndpointTests.cs | 14 ++++++------ .../Path/CheckPathExistsEndpointTests.cs | 10 ++++----- .../Path/CombinePathEndpointTests.cs | 8 +++---- .../Path/GetPathParentEndpointTests.cs | 12 +++++----- .../Path/GetPathRootEndpointTests.cs | 10 ++++----- .../Path/GetPathSeparatorEndpointTests.cs | 8 +++---- .../Path/SplitPathEndpointTests.cs | 8 +++---- .../Path/ValidatePathEndpointTests.cs | 8 +++---- .../Thumbnails/GetThumbnailEndpointTests.cs | 10 ++++----- .../Books/AddBook}/AddBookEndpointTests.cs | 2 +- .../Books/GetBooks}/GetBooksEndpointTests.cs | 6 ++--- .../CheckInitializationEndpointTests.cs | 15 ++++++++++--- .../SetupApplicationEndpointTests.cs | 9 ++++---- .../ChangePasswordEndpointTests.cs | 12 +++++----- .../Authentication/GetUsersEndpointTests.cs | 6 ++--- .../Authentication/LoginEndpointTests.cs | 16 +++++++++----- .../RecoverPasswordEndpointTests.cs | 16 ++++++++------ .../Authentication/RegisterEndpointTests.cs | 11 +++++----- .../GetAuthorizationEndpointTests.cs | 8 +++---- .../GetUserPermissionsEndpointTests.cs | 8 +++---- .../Authorization/GetUserRoleEndpointTests.cs | 8 +++---- ...dateUserRoleAndPermissionsEndpointTests.cs | 10 ++++----- .../Authentication/LoginEndpointTests.cs | 2 +- .../RecoverPasswordEndpointTests.cs | 2 +- .../CheckInitializationQueryHandlerTests.cs | 2 +- ...aryMetadataProvidersCommandHandlerTests.cs | 2 ++ ...adataProviderEnabledCommandHandlerTests.cs | 2 ++ ...UpdatePluginSettingsCommandHandlerTests.cs | 2 ++ .../GetPlugins/GetPluginsQueryHandlerTests.cs | 2 ++ .../Entities/DirectoryTests.cs | 2 +- .../Entities/FileTests.cs | 2 +- .../Entities/UnixRootItemTests.cs | 2 +- .../Entities/WindowsRootItemTests.cs | 2 +- .../FileSystemItemTests.cs | 2 +- .../Services/DirectoryProviderServiceTests.cs | 2 +- .../Services/DirectoryServiceTests.cs | 2 +- .../Services/DriveServiceTests.cs | 2 +- .../Services/FileProviderServiceTests.cs | 2 +- .../Services/FileServiceTests.cs | 2 +- .../Services/FileTypeServiceTests.cs | 2 +- .../Services/PathServiceTests.cs | 2 +- .../Services/ThumbnailServiceTests.cs | 4 ++-- .../Environment/EnvironmentContextTests.cs | 2 +- .../Strategies/Path/UnixPathStrategyTests.cs | 2 +- .../Path/WindowsPathStrategyTests.cs | 2 +- .../Platform/PlatformContextFactoryTests.cs | 2 +- .../Platform/PlatformContextManagerTests.cs | 2 +- .../Platform/PlatformContextTests.cs | 2 +- .../ValueObjects/FileSystemPathIdTests.cs | 2 +- .../ValueObjects/PathSegmentTests.cs | 2 +- .../ValueObjects/StreamInfoTests.cs | 2 +- .../ValueObjects/ThumbnailTests.cs | 2 +- .../BookLibraryAggregate/BookTests.cs | 2 +- .../Lumina.Domain.UnitTests.csproj | 1 + .../CommonSettingsDtoValidatorTests.cs | 4 ++-- .../DatabaseSettingsDtoValidatorTests.cs | 4 ++-- .../EncryptionSettingsDtoValidatorTests.cs | 6 ++--- .../JwtSettingsDtoValidatorTests.cs | 12 +++++----- .../MediaSettingsDtoValidatorTests.cs | 12 +++++----- .../Fakes/FakeBookMetadataProvider.cs | 2 +- .../Metadata/RemoteMetadataProviderTests.cs | 14 +++++++----- .../{ => Core}/Plugins/PluginTests.cs | 12 ++++++---- .../FileSystem/GetTypeEndpointTests.cs | 6 ++--- .../Books/AddBook}/AddBookEndpointTests.cs | 2 +- 78 files changed, 283 insertions(+), 201 deletions(-) rename tests/Common/{Lumina.Domain.Fixtures => Lumina.Domain.SharedKernel.Fixtures}/Common/Enums/PhotoLibrary/ImageTypeFixture.cs (95%) create mode 100644 tests/Common/Lumina.Domain.SharedKernel.Fixtures/Lumina.Domain.SharedKernel.Fixtures.csproj create mode 100644 tests/Common/Lumina.Domain.SharedKernel.Fixtures/Properties/AssemblyInfo.cs rename tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/{WrittenContentLibrary/BookLibrary/Books => Library/WrittenContentLibrary/BookLibrary/Books/AddBook}/AddBookEndpointTests.cs (99%) rename tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/{WrittenContentLibrary/BookLibrary/Books => Library/WrittenContentLibrary/BookLibrary/Books/GetBooks}/GetBooksEndpointTests.cs (92%) rename tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/{CheckInitiliazation => CheckInitialization}/CheckInitializationQueryHandlerTests.cs (98%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Entities/DirectoryTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Entities/FileTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs (96%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/FileSystemItemTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/DriveServiceTests.cs (96%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/FileServiceTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs (98%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/PathServiceTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs (95%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs (99%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs (94%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs (96%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs (96%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs (96%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs (97%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/FileSystemManagementBoundedContext}/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs (96%) rename tests/UnitTests/Lumina.Domain.UnitTests/Core/{Aggregates => BoundedContexts/WrittenContentLibraryBoundedContext}/BookLibraryAggregate/BookTests.cs (94%) rename tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/{ => Common}/Fakes/FakeBookMetadataProvider.cs (99%) rename tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/{ => Core}/Metadata/RemoteMetadataProviderTests.cs (79%) rename tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/{ => Core}/Plugins/PluginTests.cs (73%) rename tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/{WrittenContentLibrary/BookLibrary/Books => Library/WrittenContentLibrary/BookLibrary/Books/AddBook}/AddBookEndpointTests.cs (57%) diff --git a/src/Lumina.sln b/src/Lumina.sln index 054fe0bc..9c38d44d 100644 --- a/src/Lumina.sln +++ b/src/Lumina.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -222,6 +222,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lumina.Infrastructure.Fixtu EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lumina.Presentation.Api.Fixtures", "..\tests\Common\Lumina.Presentation.Api.Fixtures\Lumina.Presentation.Api.Fixtures.csproj", "{4E7353D5-5F1C-43A1-B792-6CD1D5DBDB91}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lumina.Domain.SharedKernel.Fixtures", "..\tests\Common\Lumina.Domain.SharedKernel.Fixtures\Lumina.Domain.SharedKernel.Fixtures.csproj", "{A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -504,6 +506,18 @@ Global {4E7353D5-5F1C-43A1-B792-6CD1D5DBDB91}.Release|x64.Build.0 = Release|Any CPU {4E7353D5-5F1C-43A1-B792-6CD1D5DBDB91}.Release|x86.ActiveCfg = Release|Any CPU {4E7353D5-5F1C-43A1-B792-6CD1D5DBDB91}.Release|x86.Build.0 = Release|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Debug|x64.ActiveCfg = Debug|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Debug|x64.Build.0 = Debug|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Debug|x86.ActiveCfg = Debug|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Debug|x86.Build.0 = Debug|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|Any CPU.Build.0 = Release|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x64.ActiveCfg = Release|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x64.Build.0 = Release|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x86.ActiveCfg = Release|Any CPU + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -556,6 +570,7 @@ Global {BEF177F3-99E7-4649-86AB-B4235B9A95ED} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} {7C2AB7E7-F58B-4F96-BDFB-05E403BD999B} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} {4E7353D5-5F1C-43A1-B792-6CD1D5DBDB91} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} + {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4A55A28E-C657-4A0B-95EA-2931AE66004E} diff --git a/tests/Common/Lumina.Domain.Fixtures/Common/Enums/PhotoLibrary/ImageTypeFixture.cs b/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Common/Enums/PhotoLibrary/ImageTypeFixture.cs similarity index 95% rename from tests/Common/Lumina.Domain.Fixtures/Common/Enums/PhotoLibrary/ImageTypeFixture.cs rename to tests/Common/Lumina.Domain.SharedKernel.Fixtures/Common/Enums/PhotoLibrary/ImageTypeFixture.cs index 1617c609..9aeb6c1b 100644 --- a/tests/Common/Lumina.Domain.Fixtures/Common/Enums/PhotoLibrary/ImageTypeFixture.cs +++ b/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Common/Enums/PhotoLibrary/ImageTypeFixture.cs @@ -12,7 +12,7 @@ using System.IO; using Xunit; #endregion -namespace Lumina.Domain.Fixtures.Common.Enums.PhotoLibrary; +namespace Lumina.Domain.SharedKernel.Fixtures.Common.Enums.PhotoLibrary; /// /// Test-support class providing image byte data for each supported . diff --git a/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Lumina.Domain.SharedKernel.Fixtures.csproj b/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Lumina.Domain.SharedKernel.Fixtures.csproj new file mode 100644 index 00000000..8df01af4 --- /dev/null +++ b/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Lumina.Domain.SharedKernel.Fixtures.csproj @@ -0,0 +1,22 @@ + + + + net10.0 + disable + enable + $(SolutionDir)..\bin\api\ + + false + false + false + + + + + + + + + + + \ No newline at end of file diff --git a/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Properties/AssemblyInfo.cs b/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..30821396 --- /dev/null +++ b/tests/Common/Lumina.Domain.SharedKernel.Fixtures/Properties/AssemblyInfo.cs @@ -0,0 +1,13 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Lumina.Domain.SharedKernel.Fixtures")] +[assembly: AssemblyProduct("Lumina.Domain.SharedKernel.Fixtures")] + +[assembly: ComVisible(false)] + +[assembly: Guid("A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61")] + +[assembly: InternalsVisibleTo("Lumina.Domain.UnitTests")] +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] \ No newline at end of file diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Permissions/GetPermissionsEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Permissions/GetPermissionsEndpointTests.cs index 02f4f5e3..73108052 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Permissions/GetPermissionsEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Permissions/GetPermissionsEndpointTests.cs @@ -54,7 +54,7 @@ public class GetPermissionsEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenCalledWithValidRequest_ShouldCreateRole() + public async Task AddRole_WhenCalledWithValidRequest_ShouldCreateRole() { // Arrange using IServiceScope scope = _apiFactory.Services.CreateScope(); @@ -91,7 +91,7 @@ public class AddRoleEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenCalledWithNonAdminAccount_ShouldReturnForbiddenResult() + public async Task AddRole_WhenCalledWithNonAdminAccount_ShouldReturnForbiddenResult() { // Arrange _client = await _apiFactory.CreateAuthenticatedClientAsync(); @@ -119,7 +119,7 @@ public class AddRoleEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenRoleAlreadyExists_ShouldReturnConflict() + public async Task AddRole_WhenRoleAlreadyExists_ShouldReturnConflict() { // Arrange AddRoleRequest request = new( @@ -146,7 +146,7 @@ public class AddRoleEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenCancellationRequested_ShouldThrowTaskCanceledException() + public async Task AddRole_WhenCancellationRequested_ShouldThrowTaskCanceledException() { // Arrange using CancellationTokenSource cts = new(); diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRoleEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRoleEndpointTests.cs index 0ed554cd..ce531fd6 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRoleEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRoleEndpointTests.cs @@ -53,7 +53,7 @@ public class DeleteRoleEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenCalled_ShouldReturnOkResultWithFileSystemTypeResponse() + public async Task GetType_WhenCalled_ShouldReturnOkResultWithFileSystemTypeResponse() { // Act HttpResponseMessage response = await _client.GetAsync("/api/v1/file-system/get-type"); @@ -62,7 +62,7 @@ public class GetTypeEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenCalledMultipleTimes_ShouldReturnConsistentResults() + public async Task GetType_WhenCalledMultipleTimes_ShouldReturnConsistentResults() { // Act HttpResponseMessage response1 = await _client.GetAsync("/api/v1/file-system/get-type"); @@ -84,7 +84,7 @@ public class GetTypeEndpointTests : IClassFixture } [Fact] - public async Task ExecuteAsync_WhenCalledWithCancellationToken_ShouldCompleteSuccessfully() + public async Task GetType_WhenCalledWithCancellationToken_ShouldCompleteSuccessfully() { // Arrange using CancellationTokenSource cts = new(TimeSpan.FromSeconds(5)); diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Files/GetFilesEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Files/GetFilesEndpointTests.cs index d416fac4..721f46cf 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Files/GetFilesEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Files/GetFilesEndpointTests.cs @@ -53,7 +53,7 @@ public class GetFilesEndpointTests : IClassFixture /// Contains integration tests for the class. diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/WrittenContentLibrary/BookLibrary/Books/GetBooksEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointTests.cs similarity index 92% rename from tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/WrittenContentLibrary/BookLibrary/Books/GetBooksEndpointTests.cs rename to tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointTests.cs index 46a2dacd..260e1779 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/WrittenContentLibrary/BookLibrary/Books/GetBooksEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointTests.cs @@ -13,7 +13,7 @@ using System.Threading; using System.Threading.Tasks; #endregion -namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.WrittenContentLibrary.BookLibrary.Books; +namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetBooks; /// /// Contains integration tests for the class. @@ -65,7 +65,7 @@ public class GetBooksEndpointTests : IClassFixture(); + dbContext.Users.RemoveRange(dbContext.Users); + await dbContext.SaveChangesAsync(); + } + // Act HttpResponseMessage response = await _client.GetAsync("/api/v1/initialization"); @@ -70,7 +78,7 @@ public class CheckInitializationEndpointTests : IClassFixture, } [Fact] - public async Task ExecuteAsync_WhenCalledWithValidCredentials_ShouldLoginSuccessfully() + public async Task Login_WhenCalledWithValidCredentials_ShouldLoginSuccessfully() { // Arrange UserEntity user = await CreateTestUser(); @@ -93,7 +93,7 @@ public class LoginEndpointTests : IClassFixture, } [Fact] - public async Task ExecuteAsync_WhenCalledWithValidCredentialsAndTotp_ShouldLoginSuccessfully() + public async Task Login_WhenCalledWithValidCredentialsAndTotp_ShouldLoginSuccessfully() { // Arrange UserEntity user = await CreateTestUserWithTotp(); @@ -125,7 +125,7 @@ public class LoginEndpointTests : IClassFixture, } [Fact] - public async Task ExecuteAsync_WhenCalledWithTempPassword_ShouldLoginSuccessfully() + public async Task Login_WhenCalledWithTempPassword_ShouldLoginSuccessfully() { // Arrange UserEntity user = await CreateTestUserWithTempPassword(); @@ -151,7 +151,7 @@ public class LoginEndpointTests : IClassFixture, } [Fact] - public async Task ExecuteAsync_WhenCalledWithExpiredTempPassword_ShouldReturnUnauthorized() + public async Task Login_WhenCalledWithExpiredTempPassword_ShouldReturnUnauthorized() { // Arrange UserEntity user = await CreateTestUserWithExpiredTempPassword(); @@ -179,7 +179,7 @@ public class LoginEndpointTests : IClassFixture, } [Fact] - public async Task ExecuteAsync_WhenCalledWithInvalidCredentials_ShouldReturnUnauthorized() + public async Task Login_WhenCalledWithInvalidCredentials_ShouldReturnUnauthorized() { // Arrange UserEntity user = await CreateTestUser(); @@ -207,7 +207,7 @@ public class LoginEndpointTests : IClassFixture, } [Fact] - public async Task ExecuteAsync_WhenCalledWithInvalidTotpCode_ShouldReturnUnauthorized() + public async Task Login_WhenCalledWithInvalidTotpCode_ShouldReturnUnauthorized() { // Arrange UserEntity user = await CreateTestUserWithTotp(); @@ -247,6 +247,7 @@ public class LoginEndpointTests : IClassFixture, UserEntity user = new() { + Id = Guid.NewGuid(), Username = _testUsername, Password = _hashService.HashString("TestPass123!"), Libraries = [], @@ -269,6 +270,7 @@ public class LoginEndpointTests : IClassFixture, byte[] totpSecret = _totpTokenGenerator.GenerateSecret(); UserEntity user = new() { + Id = Guid.NewGuid(), Username = _testUsername, Password = _hashService.HashString("TestPass123!"), TotpSecret = _cryptographyService.Encrypt(Convert.ToBase64String(totpSecret)), @@ -291,6 +293,7 @@ public class LoginEndpointTests : IClassFixture, UserEntity user = new() { + Id = Guid.NewGuid(), Username = _testUsername, Password = _hashService.HashString("TestPass123!"), TempPassword = Uri.EscapeDataString(_hashService.HashString("TempPass123!")), @@ -314,6 +317,7 @@ public class LoginEndpointTests : IClassFixture, UserEntity user = new() { + Id = Guid.NewGuid(), Username = _testUsername, Password = _hashService.HashString("TestPass123!"), TempPassword = Uri.EscapeDataString(_hashService.HashString("TempPass123!")), diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs index 7c20b5be..94803f37 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs @@ -69,7 +69,7 @@ public class RecoverPasswordEndpointTests : IClassFixture(); UserEntity userWithoutTotp = new() { + Id = Guid.NewGuid(), Username = "userwithoutotp2", Password = _hashService.HashString("OldPass123!"), TotpSecret = null, // No TOTP configured @@ -288,7 +289,7 @@ public class RecoverPasswordEndpointTests : IClassFixture, IDisposable } [Fact] - public async Task ExecuteAsync_WhenRateLimitExceeded_ShouldReturnTooManyRequests() + public async Task Login_WhenRateLimitExceeded_ShouldReturnTooManyRequests() { // Arrange // set a fake IP for this test instance diff --git a/tests/SecurityTests/Lumina.Presentation.Api.SecurityTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs b/tests/SecurityTests/Lumina.Presentation.Api.SecurityTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs index 6a3e6da5..2e0b2dfe 100644 --- a/tests/SecurityTests/Lumina.Presentation.Api.SecurityTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs +++ b/tests/SecurityTests/Lumina.Presentation.Api.SecurityTests/Core/Endpoints/UsersManagement/Authentication/RecoverPasswordEndpointTests.cs @@ -44,7 +44,7 @@ public class RecoverPasswordEndpointTests : IClassFixture, IDi } [Fact] - public async Task ExecuteAsync_WhenRateLimitExceeded_ShouldReturnTooManyRequests() + public async Task RecoverPassword_WhenRateLimitExceeded_ShouldReturnTooManyRequests() { // Arrange RecoverPasswordRequest request = new( diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/CheckInitiliazation/CheckInitializationQueryHandlerTests.cs b/tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/CheckInitialization/CheckInitializationQueryHandlerTests.cs similarity index 98% rename from tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/CheckInitiliazation/CheckInitializationQueryHandlerTests.cs rename to tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/CheckInitialization/CheckInitializationQueryHandlerTests.cs index 22867370..1432c22e 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/CheckInitiliazation/CheckInitializationQueryHandlerTests.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Core/Maintenance/ApplicationSetup/Queries/CheckInitialization/CheckInitializationQueryHandlerTests.cs @@ -14,7 +14,7 @@ using System.Threading; using System.Threading.Tasks; #endregion -namespace Lumina.Application.UnitTests.Core.Maintenance.ApplicationSetup.Queries.CheckInitiliazation; +namespace Lumina.Application.UnitTests.Core.Maintenance.ApplicationSetup.Queries.CheckInitialization; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/ReorderLibraryMetadataProviders/ReorderLibraryMetadataProvidersCommandHandlerTests.cs b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/ReorderLibraryMetadataProviders/ReorderLibraryMetadataProvidersCommandHandlerTests.cs index 41229724..8698100d 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/ReorderLibraryMetadataProviders/ReorderLibraryMetadataProvidersCommandHandlerTests.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/ReorderLibraryMetadataProviders/ReorderLibraryMetadataProvidersCommandHandlerTests.cs @@ -11,6 +11,7 @@ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using System.Diagnostics.CodeAnalysis; #endregion namespace Lumina.Application.UnitTests.Core.Plugins.Commands.ReorderLibraryMetadataProviders; @@ -18,6 +19,7 @@ namespace Lumina.Application.UnitTests.Core.Plugins.Commands.ReorderLibraryMetad /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class ReorderLibraryMetadataProvidersCommandHandlerTests { private readonly IUnitOfWork _mockUnitOfWork; diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/SetLibraryMetadataProviderEnabled/SetLibraryMetadataProviderEnabledCommandHandlerTests.cs b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/SetLibraryMetadataProviderEnabled/SetLibraryMetadataProviderEnabledCommandHandlerTests.cs index ad8f489c..85a16954 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/SetLibraryMetadataProviderEnabled/SetLibraryMetadataProviderEnabledCommandHandlerTests.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/SetLibraryMetadataProviderEnabled/SetLibraryMetadataProviderEnabledCommandHandlerTests.cs @@ -10,6 +10,7 @@ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using System.Diagnostics.CodeAnalysis; #endregion namespace Lumina.Application.UnitTests.Core.Plugins.Commands.SetLibraryMetadataProviderEnabled; @@ -17,6 +18,7 @@ namespace Lumina.Application.UnitTests.Core.Plugins.Commands.SetLibraryMetadataP /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class SetLibraryMetadataProviderEnabledCommandHandlerTests { private readonly IUnitOfWork _mockUnitOfWork; diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/UpdatePluginSettings/UpdatePluginSettingsCommandHandlerTests.cs b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/UpdatePluginSettings/UpdatePluginSettingsCommandHandlerTests.cs index aeec76ed..563a4584 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/UpdatePluginSettings/UpdatePluginSettingsCommandHandlerTests.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Commands/UpdatePluginSettings/UpdatePluginSettingsCommandHandlerTests.cs @@ -9,6 +9,7 @@ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using System.Diagnostics.CodeAnalysis; #endregion namespace Lumina.Application.UnitTests.Core.Plugins.Commands.UpdatePluginSettings; @@ -16,6 +17,7 @@ namespace Lumina.Application.UnitTests.Core.Plugins.Commands.UpdatePluginSetting /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class UpdatePluginSettingsCommandHandlerTests { private readonly IUnitOfWork _mockUnitOfWork; diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Queries/GetPlugins/GetPluginsQueryHandlerTests.cs b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Queries/GetPlugins/GetPluginsQueryHandlerTests.cs index 783bcfe5..42feab39 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Queries/GetPlugins/GetPluginsQueryHandlerTests.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Core/Plugins/Queries/GetPlugins/GetPluginsQueryHandlerTests.cs @@ -10,6 +10,7 @@ using NSubstitute; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using System.Diagnostics.CodeAnalysis; #endregion namespace Lumina.Application.UnitTests.Core.Plugins.Queries.GetPlugins; @@ -17,6 +18,7 @@ namespace Lumina.Application.UnitTests.Core.Plugins.Queries.GetPlugins; /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class GetPluginsQueryHandlerTests { private readonly IUnitOfWork _mockUnitOfWork; diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/DirectoryTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/DirectoryTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/DirectoryTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/DirectoryTests.cs index 654ea401..d7455fcf 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/DirectoryTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/DirectoryTests.cs @@ -10,7 +10,7 @@ using System; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Entities; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/FileTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/FileTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/FileTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/FileTests.cs index f84c823a..ea5c5af7 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/FileTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/FileTests.cs @@ -8,7 +8,7 @@ using System; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Entities; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs similarity index 96% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs index b6e033c7..5a75102c 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/UnixRootItemTests.cs @@ -8,7 +8,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Entities; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs index b5454ce0..30533f5e 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Entities/WindowsRootItemTests.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Entities; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/FileSystemItemTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/FileSystemItemTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/FileSystemItemTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/FileSystemItemTests.cs index 1459c1c1..ff0b4f5a 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/FileSystemItemTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/FileSystemItemTests.cs @@ -11,7 +11,7 @@ using Lumina.Domain.SharedKernel.Common.Enums.FileSystem; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs index a16ea31f..a15c1e44 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DirectoryProviderServiceTests.cs @@ -19,7 +19,7 @@ using System.Linq; using System.Runtime.InteropServices; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs index a77b3dc2..1ec2e417 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DirectoryServiceTests.cs @@ -18,7 +18,7 @@ using System.Runtime.InteropServices; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DriveServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DriveServiceTests.cs similarity index 96% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DriveServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DriveServiceTests.cs index b7b8ad35..132aef7f 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/DriveServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/DriveServiceTests.cs @@ -12,7 +12,7 @@ using System.IO.Abstractions; using System.Linq; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs index c9eb9b37..44056680 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileProviderServiceTests.cs @@ -18,7 +18,7 @@ using System.Linq; using System.Runtime.InteropServices; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileServiceTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileServiceTests.cs index ee26858a..1efdd9be 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileServiceTests.cs @@ -18,7 +18,7 @@ using System.Runtime.InteropServices; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs similarity index 98% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs index 389c40d3..dcc32308 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeServiceTests.cs @@ -18,7 +18,7 @@ using System.Threading; using System.Threading.Tasks; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/PathServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/PathServiceTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/PathServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/PathServiceTests.cs index a630f233..3bebfe31 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/PathServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/PathServiceTests.cs @@ -12,7 +12,7 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs index 26af77a1..83d75cf0 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/ThumbnailServiceTests.cs @@ -4,7 +4,7 @@ using Lumina.Domain.Common.Primitives; using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Environment; using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; -using Lumina.Domain.Fixtures.Common.Enums.PhotoLibrary; +using Lumina.Domain.SharedKernel.Fixtures.Common.Enums.PhotoLibrary; using Lumina.Domain.Fixtures.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; using Lumina.Domain.SharedKernel.Common.Enums.PhotoLibrary; using NSubstitute; @@ -17,7 +17,7 @@ using System.Threading; using System.Threading.Tasks; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Services; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs similarity index 95% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs index e4f8039d..dfddfe72 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Environment/EnvironmentContextTests.cs @@ -5,7 +5,7 @@ using NSubstitute; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Strategies.Environment; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Environment; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs index 46e49a60..715a5434 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Path/UnixPathStrategyTests.cs @@ -11,7 +11,7 @@ using System.IO.Abstractions; using System.Linq; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Strategies.Path; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Path; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs similarity index 99% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs index ce3ac698..48d903a4 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Path/WindowsPathStrategyTests.cs @@ -11,7 +11,7 @@ using System.IO.Abstractions; using System.Linq; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Strategies.Path; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Path; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs similarity index 94% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs index 584d5dac..c5272cd7 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextFactoryTests.cs @@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis; using System.IO.Abstractions; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Strategies.Platform; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Platform; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs index 0003dfb9..be42d503 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManagerTests.cs @@ -7,7 +7,7 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Strategies.Platform; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Platform; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs similarity index 96% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs index f1a50b9f..56194f6e 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextTests.cs @@ -6,7 +6,7 @@ using NSubstitute; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.Strategies.Platform; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Strategies.Platform; /// /// Contains unit tests for the and classes. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs similarity index 96% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs index 0e967b42..039fa22f 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathIdTests.cs @@ -6,7 +6,7 @@ using Lumina.Domain.Fixtures.Core.BoundedContexts.FileSystemManagementBoundedCon using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.ValueObjects; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs similarity index 96% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs index d0c7575a..22d49bbc 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegmentTests.cs @@ -6,7 +6,7 @@ using Lumina.Domain.Fixtures.Core.BoundedContexts.FileSystemManagementBoundedCon using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.ValueObjects; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs similarity index 97% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs index 8fe82ade..ec672c6c 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfoTests.cs @@ -7,7 +7,7 @@ using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.ValueObjects; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs similarity index 96% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs index 5c218610..b5b7cef3 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/ThumbnailTests.cs @@ -8,7 +8,7 @@ using System.Linq; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.FileSystemManagementAggregate.ValueObjects; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/BookLibraryAggregate/BookTests.cs b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookTests.cs similarity index 94% rename from tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/BookLibraryAggregate/BookTests.cs rename to tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookTests.cs index 0415661e..11427070 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Core/Aggregates/BookLibraryAggregate/BookTests.cs +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookTests.cs @@ -6,7 +6,7 @@ using System; using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Domain.UnitTests.Core.Aggregates.BookLibraryAggregate; +namespace Lumina.Domain.UnitTests.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate; /// /// Contains unit tests for the class. diff --git a/tests/UnitTests/Lumina.Domain.UnitTests/Lumina.Domain.UnitTests.csproj b/tests/UnitTests/Lumina.Domain.UnitTests/Lumina.Domain.UnitTests.csproj index 11338eaf..d4b1d67c 100644 --- a/tests/UnitTests/Lumina.Domain.UnitTests/Lumina.Domain.UnitTests.csproj +++ b/tests/UnitTests/Lumina.Domain.UnitTests/Lumina.Domain.UnitTests.csproj @@ -42,5 +42,6 @@ + diff --git a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/CommonSettingsDtoValidatorTests.cs b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/CommonSettingsDtoValidatorTests.cs index c34206bc..650670ef 100644 --- a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/CommonSettingsDtoValidatorTests.cs +++ b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/CommonSettingsDtoValidatorTests.cs @@ -29,7 +29,7 @@ public class CommonSettingsDtoValidatorTests } [Fact] - public void CommonSettingsModelValidator_WhenThemeProvided_ShouldNotHaveValidationError() + public void Validate_WhenThemeProvided_ShouldNotHaveValidationError() { // Arrange CommonSettingsDto model = _fixture.Build() @@ -44,7 +44,7 @@ public class CommonSettingsDtoValidatorTests } [Fact] - public void CommonSettingsModelValidator_WhenThemeNotProvided_ShouldNotHaveValidationError() + public void Validate_WhenThemeNotProvided_ShouldNotHaveValidationError() { // Arrange CommonSettingsDto model = _fixture.Build() diff --git a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/DatabaseSettingsDtoValidatorTests.cs b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/DatabaseSettingsDtoValidatorTests.cs index 489b9e5f..f89b4fc7 100644 --- a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/DatabaseSettingsDtoValidatorTests.cs +++ b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/DatabaseSettingsDtoValidatorTests.cs @@ -29,7 +29,7 @@ public class DatabaseSettingsDtoValidatorTests } [Fact] - public void DatabaseSettingsModelValidator_WhenDefaultConnectionProvided_ShouldNotHaveValidationError() + public void Validate_WhenDefaultConnectionProvided_ShouldNotHaveValidationError() { // Arrange DatabaseSettingsDto model = _fixture.Build() @@ -44,7 +44,7 @@ public class DatabaseSettingsDtoValidatorTests } [Fact] - public void DatabaseSettingsModelValidator_WhenDefaultConnectionNotProvided_ShouldHaveValidationError() + public void Validate_WhenDefaultConnectionNotProvided_ShouldHaveValidationError() { // Arrange DatabaseSettingsDto model = _fixture.Build() diff --git a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/EncryptionSettingsDtoValidatorTests.cs b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/EncryptionSettingsDtoValidatorTests.cs index 10a8186d..735bba56 100644 --- a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/EncryptionSettingsDtoValidatorTests.cs +++ b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/EncryptionSettingsDtoValidatorTests.cs @@ -29,7 +29,7 @@ public class EncryptionSettingsDtoValidatorTests } [Fact] - public void EncryptionSettingsModelValidator_WhenValidBase64SecretKeyProvided_ShouldNotHaveValidationError() + public void Validate_WhenValidBase64SecretKeyProvided_ShouldNotHaveValidationError() { // Arrange EncryptionSettingsDto model = _fixture.Build() @@ -44,7 +44,7 @@ public class EncryptionSettingsDtoValidatorTests } [Fact] - public void EncryptionSettingsModelValidator_WhenSecretKeyIsEmpty_ShouldHaveValidationError() + public void Validate_WhenSecretKeyIsEmpty_ShouldHaveValidationError() { // Arrange EncryptionSettingsDto model = _fixture.Build() @@ -63,7 +63,7 @@ public class EncryptionSettingsDtoValidatorTests [InlineData("not-a-base64-string")] [InlineData("invalid!base64")] [InlineData("123")] - public void EncryptionSettingsModelValidator_WhenSecretKeyIsNotBase64_ShouldHaveValidationError(string invalidBase64) + public void Validate_WhenSecretKeyIsNotBase64_ShouldHaveValidationError(string invalidBase64) { // Arrange EncryptionSettingsDto model = _fixture.Build() diff --git a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/JwtSettingsDtoValidatorTests.cs b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/JwtSettingsDtoValidatorTests.cs index 1391eb22..97fc2c30 100644 --- a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/JwtSettingsDtoValidatorTests.cs +++ b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/JwtSettingsDtoValidatorTests.cs @@ -29,7 +29,7 @@ public class JwtSettingsDtoValidatorTests } [Fact] - public void JwtSettingsModelValidator_WhenAllPropertiesValid_ShouldNotHaveValidationError() + public void Validate_WhenAllPropertiesValid_ShouldNotHaveValidationError() { // Arrange JwtSettingsDto model = _fixture.Build() @@ -47,7 +47,7 @@ public class JwtSettingsDtoValidatorTests } [Fact] - public void JwtSettingsModelValidator_WhenSecretKeyIsEmpty_ShouldHaveValidationErrors() + public void Validate_WhenSecretKeyIsEmpty_ShouldHaveValidationErrors() { // Arrange JwtSettingsDto model = _fixture.Build() @@ -67,7 +67,7 @@ public class JwtSettingsDtoValidatorTests } [Fact] - public void JwtSettingsModelValidator_WhenSecretKeyTooShort_ShouldHaveValidationError() + public void Validate_WhenSecretKeyTooShort_ShouldHaveValidationError() { // Arrange JwtSettingsDto model = _fixture.Build() @@ -89,7 +89,7 @@ public class JwtSettingsDtoValidatorTests [InlineData(0)] [InlineData(-1)] [InlineData(-60)] - public void JwtSettingsModelValidator_WhenExpiryMinutesNotPositive_ShouldHaveValidationError(int minutes) + public void Validate_WhenExpiryMinutesNotPositive_ShouldHaveValidationError(int minutes) { // Arrange JwtSettingsDto model = _fixture.Build() @@ -108,7 +108,7 @@ public class JwtSettingsDtoValidatorTests } [Fact] - public void JwtSettingsModelValidator_WhenIssuerIsEmpty_ShouldHaveValidationError() + public void Validate_WhenIssuerIsEmpty_ShouldHaveValidationError() { // Arrange JwtSettingsDto model = _fixture.Build() @@ -127,7 +127,7 @@ public class JwtSettingsDtoValidatorTests } [Fact] - public void JwtSettingsModelValidator_WhenAudienceIsEmpty_ShouldHaveValidationError() + public void Validate_WhenAudienceIsEmpty_ShouldHaveValidationError() { // Arrange JwtSettingsDto model = _fixture.Build() diff --git a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/MediaSettingsDtoValidatorTests.cs b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/MediaSettingsDtoValidatorTests.cs index 195e56a5..809b4731 100644 --- a/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/MediaSettingsDtoValidatorTests.cs +++ b/tests/UnitTests/Lumina.Infrastructure.UnitTests/Common/Validators/MediaSettingsDtoValidatorTests.cs @@ -29,7 +29,7 @@ public class MediaSettingsDtoValidatorTests } [Fact] - public void MediaSettingsModelValidator_WhenRootDirectoryProvided_ShouldNotHaveValidationError() + public void Validate_WhenRootDirectoryProvided_ShouldNotHaveValidationError() { // Arrange MediaSettingsDto model = _fixture.Build() @@ -44,7 +44,7 @@ public class MediaSettingsDtoValidatorTests } [Fact] - public void MediaSettingsModelValidator_WhenRootDirectoryIsEmpty_ShouldHaveValidationError() + public void Validate_WhenRootDirectoryIsEmpty_ShouldHaveValidationError() { // Arrange MediaSettingsDto model = _fixture.Build() @@ -60,7 +60,7 @@ public class MediaSettingsDtoValidatorTests } [Fact] - public void MediaSettingsModelValidator_WhenRootDirectoryIsWhitespace_ShouldHaveValidationError() + public void Validate_WhenRootDirectoryIsWhitespace_ShouldHaveValidationError() { // Arrange MediaSettingsDto model = _fixture.Build() @@ -76,7 +76,7 @@ public class MediaSettingsDtoValidatorTests } [Fact] - public void MediaSettingsModelValidator_WhenMediaLibrariesDirectoryIsEmpty_ShouldHaveValidationError() + public void Validate_WhenMediaLibrariesDirectoryIsEmpty_ShouldHaveValidationError() { // Arrange MediaSettingsDto model = _fixture.Build() @@ -92,7 +92,7 @@ public class MediaSettingsDtoValidatorTests } [Fact] - public void MediaSettingsModelValidator_WhenMediaLibrariesDirectoryProvided_ShouldNotHaveValidationError() + public void Validate_WhenMediaLibrariesDirectoryProvided_ShouldNotHaveValidationError() { // Arrange MediaSettingsDto model = _fixture.Build() @@ -107,7 +107,7 @@ public class MediaSettingsDtoValidatorTests } [Fact] - public void MediaSettingsModelValidator_WhenMediaLibrariesDirectoryIsWhitespace_ShouldHaveValidationError() + public void Validate_WhenMediaLibrariesDirectoryIsWhitespace_ShouldHaveValidationError() { // Arrange MediaSettingsDto model = _fixture.Build() diff --git a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Common/Fakes/FakeBookMetadataProvider.cs similarity index 99% rename from tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs rename to tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Common/Fakes/FakeBookMetadataProvider.cs index c72dfc21..598ff362 100644 --- a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs +++ b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Common/Fakes/FakeBookMetadataProvider.cs @@ -13,7 +13,7 @@ using System.Threading; using System.Threading.Tasks; #endregion -namespace Lumina.Plugins.Contracts.UnitTests.Fakes; +namespace Lumina.Plugins.Contracts.UnitTests.Common.Fakes; /// /// A fake book metadata provider used to exercise the plugin contracts from outside. diff --git a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Metadata/RemoteMetadataProviderTests.cs b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Core/Metadata/RemoteMetadataProviderTests.cs similarity index 79% rename from tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Metadata/RemoteMetadataProviderTests.cs rename to tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Core/Metadata/RemoteMetadataProviderTests.cs index 2c94544a..a08c8ba3 100644 --- a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Metadata/RemoteMetadataProviderTests.cs +++ b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Core/Metadata/RemoteMetadataProviderTests.cs @@ -2,21 +2,23 @@ using Lumina.Contracts.DTO.Common; using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary; using Lumina.Plugins.Contracts.Core.Metadata; -using Lumina.Plugins.Contracts.UnitTests.Fakes; +using Lumina.Plugins.Contracts.UnitTests.Common.Fakes; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Plugins.Contracts.UnitTests.Metadata; +namespace Lumina.Plugins.Contracts.UnitTests.Core.Metadata; /// /// Contains unit tests for the contracts. /// +[ExcludeFromCodeCoverage] public class RemoteMetadataProviderTests { - private readonly IRemoteMetadataProvider _provider = new FakeBookMetadataProvider(); + private readonly IRemoteMetadataProvider _sut = new FakeBookMetadataProvider(); [Fact] public async Task GetMetadataAsync_WhenCalledThroughNonGenericInterface_ShouldReturnTypedMetadata() @@ -28,7 +30,7 @@ public class RemoteMetadataProviderTests Title: "The Fellowship of the Ring"); // Act - MetadataDto? result = await _provider.GetMetadataAsync(lookup, CancellationToken.None); + MetadataDto? result = await _sut.GetMetadataAsync(lookup, CancellationToken.None); // Assert Assert.NotNull(result); @@ -46,7 +48,7 @@ public class RemoteMetadataProviderTests Path: "/books/unknown.epub"); // Act - MetadataDto? result = await _provider.GetMetadataAsync(lookup, CancellationToken.None); + MetadataDto? result = await _sut.GetMetadataAsync(lookup, CancellationToken.None); // Assert Assert.Null(result); @@ -62,7 +64,7 @@ public class RemoteMetadataProviderTests Title: "The Fellowship of the Ring"); // Act - IReadOnlyList result = await _provider.GetSearchResultsAsync(lookup, CancellationToken.None); + IReadOnlyList result = await _sut.GetSearchResultsAsync(lookup, CancellationToken.None); // Assert Assert.Single(result); diff --git a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Plugins/PluginTests.cs b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Core/Plugins/PluginTests.cs similarity index 73% rename from tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Plugins/PluginTests.cs rename to tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Core/Plugins/PluginTests.cs index ed6f0901..048b6ab4 100644 --- a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Plugins/PluginTests.cs +++ b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Core/Plugins/PluginTests.cs @@ -1,24 +1,28 @@ #region ========================================================================= USING ===================================================================================== using Lumina.Plugins.Contracts.Core.Plugins; using Lumina.Plugins.Contracts.Core.Plugins.Settings; -using Lumina.Plugins.Contracts.UnitTests.Fakes; +using Lumina.Plugins.Contracts.UnitTests.Common.Fakes; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; #endregion -namespace Lumina.Plugins.Contracts.UnitTests.Plugins; +namespace Lumina.Plugins.Contracts.UnitTests.Core.Plugins; /// /// Contains unit tests for the contract. /// +[ExcludeFromCodeCoverage] public class PluginTests { - private readonly IPlugin _plugin = new FakeBookMetadataProvider(); + private readonly IPlugin _sut = new FakeBookMetadataProvider(); [Fact] public void GetSettingsSchema_WhenCalled_ShouldReturnDeclaredSettings() { + // Arrange + // Act - IReadOnlyList schema = _plugin.GetSettingsSchema(); + IReadOnlyList schema = _sut.GetSettingsSchema(); // Assert Assert.Equal(2, schema.Count); diff --git a/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/FileSystemManagement/FileSystem/GetTypeEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/FileSystemManagement/FileSystem/GetTypeEndpointTests.cs index 7a0d5075..e2bfe3cd 100644 --- a/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/FileSystemManagement/FileSystem/GetTypeEndpointTests.cs +++ b/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/FileSystemManagement/FileSystem/GetTypeEndpointTests.cs @@ -20,15 +20,15 @@ namespace Lumina.Presentation.Api.UnitTests.Core.Endpoints.FileSystemManagement. /// Contains unit tests for the class. /// [ExcludeFromCodeCoverage] -public class GetFileSystemTypeEndpointTests +public class GetTypeEndpointTests { private readonly IQueryHandler _mockHandler; private readonly GetTypeEndpoint _sut; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetFileSystemTypeEndpointTests() + public GetTypeEndpointTests() { _mockHandler = Substitute.For>(); _sut = Factory.Create(_mockHandler); diff --git a/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/WrittenContentLibrary/BookLibrary/Books/AddBookEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/AddBook/AddBookEndpointTests.cs similarity index 57% rename from tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/WrittenContentLibrary/BookLibrary/Books/AddBookEndpointTests.cs rename to tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/AddBook/AddBookEndpointTests.cs index 0791190b..dc9ca110 100644 --- a/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/WrittenContentLibrary/BookLibrary/Books/AddBookEndpointTests.cs +++ b/tests/UnitTests/Lumina.Presentation.Api.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/AddBook/AddBookEndpointTests.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Lumina.Presentation.Api.UnitTests.Core.Endpoints.WrittenContentLibrary.BookLibrary.Books; +namespace Lumina.Presentation.Api.UnitTests.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.AddBook; internal class AddBookEndpointTests { }