Renames project content from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:37:44 +02:00
1 parent 0f659a4877
commit c583c9327c
6127 files changed
+41884 -41884

No files matched your search

@@ -1,13 +1,13 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Authorization;
using Lumina.Application.Common.DataAccess.Entities.Themes;
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
using Lumina.Application.Common.Infrastructure.Themes;
using Lumina.Contracts.Responses.Themes;
using Lumina.DataAccess.Core.UoW;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Management.DeleteTheme;
using Lumina.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Application.Common.DataAccess.Entities.Authorization;
using Nemera.Application.Common.DataAccess.Entities.Themes;
using Nemera.Application.Common.DataAccess.Entities.UsersManagement;
using Nemera.Application.Common.Infrastructure.Themes;
using Nemera.Contracts.Responses.Themes;
using Nemera.DataAccess.Core.UoW;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Management.DeleteTheme;
using Nemera.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
@@ -24,16 +24,16 @@ using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.DeleteTheme;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.DeleteTheme;
/// <summary>
/// Contains integration tests for the <see cref="DeleteThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly TestThemeArchiveFixture _testThemeArchiveFixture = new();
private readonly List<string> _installedThemeIds = [];
private readonly JsonSerializerOptions _jsonOptions = new()
@@ -46,7 +46,7 @@ public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
/// Initializes a new instance of the <see cref="DeleteThemeEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public DeleteThemeEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public DeleteThemeEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -74,7 +74,7 @@ public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
// The theme row is removed from the database.
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
Assert.Null(await dbContext.Themes.FirstOrDefaultAsync(theme => theme.ThemeId == themeId));
// The theme no longer appears in GET /themes.
@@ -119,7 +119,7 @@ public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
Assert.Equal(HttpStatusCode.NoContent, firstDeletionResponse.StatusCode);
// Act: the last remaining bundled theme cannot be deleted.
HttpResponseMessage response = await _client.DeleteAsync("/api/v1/themes/lumina-default");
HttpResponseMessage response = await _client.DeleteAsync("/api/v1/themes/nemera-default");
// Assert
Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
@@ -131,7 +131,7 @@ public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.4", problemDetails["type"].GetString());
Assert.Equal("General.Forbidden", problemDetails["title"].GetString());
Assert.Equal("LastBundledThemeCannotBeDeleted", problemDetails["detail"].GetString());
Assert.Equal("/api/v1/themes/lumina-default", problemDetails["instance"].GetString());
Assert.Equal("/api/v1/themes/nemera-default", problemDetails["instance"].GetString());
Assert.NotNull(problemDetails["traceId"].GetString());
Assert.NotEmpty(problemDetails["traceId"].GetString()!);
@@ -203,7 +203,7 @@ public class DeleteThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
public async Task DisposeAsync()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
foreach (string themeId in _installedThemeIds)
{
@@ -1,14 +1,14 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Authorization;
using Lumina.Application.Common.DataAccess.Entities.Themes;
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
using Lumina.Application.Common.Infrastructure.Themes;
using Lumina.Contracts.Responses.Themes;
using Lumina.DataAccess.Core.UoW;
using Lumina.Domain.SharedKernel.Common.Enums.Themes;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Management.InstallTheme;
using Lumina.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Application.Common.DataAccess.Entities.Authorization;
using Nemera.Application.Common.DataAccess.Entities.Themes;
using Nemera.Application.Common.DataAccess.Entities.UsersManagement;
using Nemera.Application.Common.Infrastructure.Themes;
using Nemera.Contracts.Responses.Themes;
using Nemera.DataAccess.Core.UoW;
using Nemera.Domain.SharedKernel.Common.Enums.Themes;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Management.InstallTheme;
using Nemera.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
@@ -26,16 +26,16 @@ using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.InstallTheme;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.InstallTheme;
/// <summary>
/// Contains integration tests for the <see cref="InstallThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class InstallThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class InstallThemeEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly TestThemeArchiveFixture _testThemeArchiveFixture = new();
private readonly List<string> _installedThemeIds = [];
private readonly JsonSerializerOptions _jsonOptions = new()
@@ -48,7 +48,7 @@ public class InstallThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
/// Initializes a new instance of the <see cref="InstallThemeEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public InstallThemeEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public InstallThemeEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -94,7 +94,7 @@ public class InstallThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
// The installed theme is persisted in the database.
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
Assert.NotNull(await dbContext.Themes.FirstOrDefaultAsync(theme => theme.ThemeId == themeId));
_installedThemeIds.Add(themeId);
@@ -209,7 +209,7 @@ public class InstallThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
public async Task DisposeAsync()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
foreach (string themeId in _installedThemeIds)
{
@@ -1,12 +1,12 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Authorization;
using Lumina.Application.Common.DataAccess.Entities.Themes;
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
using Lumina.Application.Common.Infrastructure.Themes;
using Lumina.DataAccess.Core.UoW;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Management.RestoreTheme;
using Lumina.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Application.Common.DataAccess.Entities.Authorization;
using Nemera.Application.Common.DataAccess.Entities.Themes;
using Nemera.Application.Common.DataAccess.Entities.UsersManagement;
using Nemera.Application.Common.Infrastructure.Themes;
using Nemera.DataAccess.Core.UoW;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Management.RestoreTheme;
using Nemera.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
@@ -22,16 +22,16 @@ using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.RestoreTheme;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.RestoreTheme;
/// <summary>
/// Contains integration tests for the <see cref="RestoreThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class RestoreThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class RestoreThemeEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly TestThemeArchiveFixture _testThemeArchiveFixture = new();
private readonly List<string> _installedThemeIds = [];
private readonly JsonSerializerOptions _jsonOptions = new()
@@ -44,7 +44,7 @@ public class RestoreThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
/// Initializes a new instance of the <see cref="RestoreThemeEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public RestoreThemeEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public RestoreThemeEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -65,7 +65,7 @@ public class RestoreThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
await ThemeTestHelpers.WaitForBundledThemeAsync(_apiFactory);
using (IServiceScope scope = _apiFactory.Services.CreateScope())
{
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
ThemeEntity? theme = await dbContext.Themes.FirstOrDefaultAsync(candidate => candidate.ThemeId == "editorial-paper");
Assert.NotNull(theme);
theme!.IsDeleted = true;
@@ -81,13 +81,13 @@ public class RestoreThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
// The theme is available again and appears in the list.
using IServiceScope verificationScope = _apiFactory.Services.CreateScope();
LuminaDbContext verificationContext = verificationScope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext verificationContext = verificationScope.ServiceProvider.GetRequiredService<NemeraDbContext>();
ThemeEntity? restoredTheme = await verificationContext.Themes.FirstOrDefaultAsync(candidate => candidate.ThemeId == "editorial-paper");
Assert.NotNull(restoredTheme);
Assert.False(restoredTheme!.IsDeleted);
HttpResponseMessage listResponse = await _client.GetAsync("/api/v1/themes");
List<Lumina.Contracts.Responses.Themes.ThemeResponse>? themes = await listResponse.Content.ReadFromJsonAsync<List<Lumina.Contracts.Responses.Themes.ThemeResponse>>(_jsonOptions);
List<Nemera.Contracts.Responses.Themes.ThemeResponse>? themes = await listResponse.Content.ReadFromJsonAsync<List<Nemera.Contracts.Responses.Themes.ThemeResponse>>(_jsonOptions);
Assert.NotNull(themes);
Assert.Contains(themes!, theme => theme.ThemeId == "editorial-paper" && !theme.IsDeleted);
}
@@ -203,7 +203,7 @@ public class RestoreThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
public async Task DisposeAsync()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
foreach (string themeId in _installedThemeIds)
{
@@ -1,15 +1,15 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Authorization;
using Lumina.Application.Common.DataAccess.Entities.Themes;
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
using Lumina.Application.Common.Infrastructure.Themes;
using Lumina.Contracts.Fixtures.Core.Requests.Themes;
using Lumina.Contracts.Requests.Themes;
using Lumina.Contracts.Responses.Themes;
using Lumina.DataAccess.Core.UoW;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Management.SetCurrentTheme;
using Lumina.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Application.Common.DataAccess.Entities.Authorization;
using Nemera.Application.Common.DataAccess.Entities.Themes;
using Nemera.Application.Common.DataAccess.Entities.UsersManagement;
using Nemera.Application.Common.Infrastructure.Themes;
using Nemera.Contracts.Fixtures.Core.Requests.Themes;
using Nemera.Contracts.Requests.Themes;
using Nemera.Contracts.Responses.Themes;
using Nemera.DataAccess.Core.UoW;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Management.SetCurrentTheme;
using Nemera.Presentation.Api.Fixtures.Core.Endpoints.Themes;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
@@ -25,16 +25,16 @@ using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.SetCurrentTheme;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Management.SetCurrentTheme;
/// <summary>
/// Contains integration tests for the <see cref="SetCurrentThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class SetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class SetCurrentThemeEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly TestThemeArchiveFixture _testThemeArchiveFixture = new();
private readonly SetCurrentThemeRequestFixture _setCurrentThemeRequestFixture = new();
private readonly List<string> _installedThemeIds = [];
@@ -48,7 +48,7 @@ public class SetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApi
/// Initializes a new instance of the <see cref="SetCurrentThemeEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public SetCurrentThemeEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public SetCurrentThemeEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -210,7 +210,7 @@ public class SetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApi
public async Task DisposeAsync()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
foreach (string themeId in _installedThemeIds)
{
@@ -223,7 +223,7 @@ public class SetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApi
}
// Restore the bundled default theme as the active one, so the following tests start from a clean state.
ThemeEntity? bundledTheme = await dbContext.Themes.FirstOrDefaultAsync(t => t.ThemeId == "lumina-default");
ThemeEntity? bundledTheme = await dbContext.Themes.FirstOrDefaultAsync(t => t.ThemeId == "nemera-default");
if (bundledTheme is not null)
bundledTheme.IsCurrent = true;
@@ -1,7 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Responses.Themes;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetCurrentTheme;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Contracts.Responses.Themes;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Queries.GetCurrentTheme;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Net.Http;
@@ -11,16 +11,16 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetCurrentTheme;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetCurrentTheme;
/// <summary>
/// Contains integration tests for the <see cref="GetCurrentThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class GetCurrentThemeEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -31,7 +31,7 @@ public class GetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApi
/// Initializes a new instance of the <see cref="GetCurrentThemeEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public GetCurrentThemeEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public GetCurrentThemeEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -60,7 +60,7 @@ public class GetCurrentThemeEndpointTests : IClassFixture<AuthenticatedLuminaApi
ThemeResponse? theme = await response.Content.ReadFromJsonAsync<ThemeResponse>(_jsonOptions);
Assert.NotNull(theme);
Assert.Equal("lumina-default", theme!.ThemeId);
Assert.Equal("nemera-default", theme!.ThemeId);
Assert.True(theme.IsCurrent);
}
@@ -1,6 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeArchive;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeArchive;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -11,16 +11,16 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeArchive;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeArchive;
/// <summary>
/// Contains integration tests for the <see cref="GetThemeArchiveEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetThemeArchiveEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class GetThemeArchiveEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -31,7 +31,7 @@ public class GetThemeArchiveEndpointTests : IClassFixture<AuthenticatedLuminaApi
/// Initializes a new instance of the <see cref="GetThemeArchiveEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public GetThemeArchiveEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public GetThemeArchiveEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -1,6 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeAsset;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeAsset;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -11,15 +11,15 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeAsset;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeAsset;
/// <summary>
/// Contains integration tests for the <see cref="GetThemeAssetEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetThemeAssetEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class GetThemeAssetEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -30,7 +30,7 @@ public class GetThemeAssetEndpointTests : IClassFixture<AuthenticatedLuminaApiFa
/// Initializes a new instance of the <see cref="GetThemeAssetEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public GetThemeAssetEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public GetThemeAssetEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_apiFactory = apiFactory;
}
@@ -1,7 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Responses.Themes;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeSettings;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Contracts.Responses.Themes;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeSettings;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Net.Http;
@@ -11,16 +11,16 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeSettings;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeSettings;
/// <summary>
/// Contains integration tests for the <see cref="GetThemeSettingsEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetThemeSettingsEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class GetThemeSettingsEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -31,7 +31,7 @@ public class GetThemeSettingsEndpointTests : IClassFixture<AuthenticatedLuminaAp
/// Initializes a new instance of the <see cref="GetThemeSettingsEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public GetThemeSettingsEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public GetThemeSettingsEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -58,7 +58,7 @@ public class GetThemeSettingsEndpointTests : IClassFixture<AuthenticatedLuminaAp
ThemeSettingsResponse? settings = await response.Content.ReadFromJsonAsync<ThemeSettingsResponse>(_jsonOptions);
Assert.NotNull(settings);
Assert.Equal(8 * 1024 * 1024, settings!.MaxArchiveBytes);
Assert.Equal("lumina-default", settings.DefaultThemeId);
Assert.Equal("nemera-default", settings.DefaultThemeId);
}
[Fact]
@@ -1,7 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Responses.Themes;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeTemplate;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Contracts.Responses.Themes;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeTemplate;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -13,15 +13,15 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeTemplate;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemeTemplate;
/// <summary>
/// Contains integration tests for the <see cref="GetThemeTemplateEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetThemeTemplateEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class GetThemeTemplateEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -32,7 +32,7 @@ public class GetThemeTemplateEndpointTests : IClassFixture<AuthenticatedLuminaAp
/// Initializes a new instance of the <see cref="GetThemeTemplateEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public GetThemeTemplateEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public GetThemeTemplateEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_apiFactory = apiFactory;
}
@@ -67,7 +67,7 @@ public class GetThemeTemplateEndpointTests : IClassFixture<AuthenticatedLuminaAp
}
[Theory]
[InlineData("lumina-default")]
[InlineData("nemera-default")]
[InlineData("editorial-paper")]
public async Task GetThemeTemplate_WhenCalledForTheDeletedItemsPage_ShouldReturnTheBundledTemplate(string themeId)
{
@@ -88,7 +88,7 @@ public class GetThemeTemplateEndpointTests : IClassFixture<AuthenticatedLuminaAp
}
[Theory]
[InlineData("lumina-default")]
[InlineData("nemera-default")]
[InlineData("editorial-paper")]
public async Task GetThemeTemplate_WhenCalledForTheMusicDeletedItemsPage_ShouldReturnTheBundledTemplateWithItsRestoreHooks(string themeId)
{
@@ -1,8 +1,8 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Responses.Themes;
using Lumina.Domain.SharedKernel.Common.Enums.Themes;
using Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemes;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Contracts.Responses.Themes;
using Nemera.Domain.SharedKernel.Common.Enums.Themes;
using Nemera.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemes;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -15,16 +15,16 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemes;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Themes.Queries.GetThemes;
/// <summary>
/// Contains integration tests for the <see cref="GetThemesEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetThemesEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class GetThemesEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -35,7 +35,7 @@ public class GetThemesEndpointTests : IClassFixture<AuthenticatedLuminaApiFactor
/// Initializes a new instance of the <see cref="GetThemesEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public GetThemesEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public GetThemesEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -65,7 +65,7 @@ public class GetThemesEndpointTests : IClassFixture<AuthenticatedLuminaApiFactor
List<ThemeResponse>? themes = await response.Content.ReadFromJsonAsync<List<ThemeResponse>>(_jsonOptions);
Assert.NotNull(themes);
ThemeResponse? bundledTheme = themes!.FirstOrDefault(theme => theme.ThemeId == "lumina-default");
ThemeResponse? bundledTheme = themes!.FirstOrDefault(theme => theme.ThemeId == "nemera-default");
Assert.NotNull(bundledTheme);
Assert.NotEmpty(bundledTheme!.Name);
Assert.Equal(ThemeInstallSource.Bundled, bundledTheme.InstallSource);