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,10 +1,10 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
using Lumina.Application.Fixtures.Common.DataAccess.Entities.UsersManagement;
using Lumina.Contracts.Responses.UsersManagement;
using Lumina.DataAccess.Core.UoW;
using Lumina.Infrastructure.Core.Security;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Application.Common.DataAccess.Entities.UsersManagement;
using Nemera.Application.Fixtures.Common.DataAccess.Entities.UsersManagement;
using Nemera.Contracts.Responses.UsersManagement;
using Nemera.DataAccess.Core.UoW;
using Nemera.Infrastructure.Core.Security;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Diagnostics.CodeAnalysis;
@@ -16,16 +16,16 @@ using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Maintenance.ApplicationSetup;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Maintenance.ApplicationSetup;
/// <summary>
/// Contains integration tests for the <see cref="CheckInitializationEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class CheckInitializationEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class CheckInitializationEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly UserEntityFixture _userEntityFixture = new();
private readonly JsonSerializerOptions _jsonOptions = new()
{
@@ -38,7 +38,7 @@ public class CheckInitializationEndpointTests : IClassFixture<AuthenticatedLumin
/// Initializes a new instance of the <see cref="CheckInitializationEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public CheckInitializationEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public CheckInitializationEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -60,7 +60,7 @@ public class CheckInitializationEndpointTests : IClassFixture<AuthenticatedLumin
// Arrange
using (IServiceScope scope = _apiFactory.Services.CreateScope())
{
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
dbContext.Users.RemoveRange(dbContext.Users);
await dbContext.SaveChangesAsync();
}
@@ -117,7 +117,7 @@ public class CheckInitializationEndpointTests : IClassFixture<AuthenticatedLumin
private async Task<UserEntity> CreateTestUser()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
UserEntity user = _userEntityFixture.Create(username: _testUsername, password: new PasswordHashService().HashString("TestPass123!"));
user.TotpSecret = null;
@@ -1,16 +1,16 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Authorization;
using Lumina.Application.Common.DataAccess.Entities.Common;
using Lumina.Application.Common.DataAccess.Entities.Scheduling;
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
using Lumina.Application.Fixtures.Common.DataAccess.Entities.UsersManagement;
using Lumina.Contracts.Fixtures.Core.Requests.Authentication;
using Lumina.Contracts.Requests.Authentication;
using Lumina.Contracts.Responses.Authentication;
using Lumina.DataAccess.Core.UoW;
using Lumina.Domain.SharedKernel.Common.Enums.Authorization;
using Lumina.Infrastructure.Core.Security;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Application.Common.DataAccess.Entities.Authorization;
using Nemera.Application.Common.DataAccess.Entities.Common;
using Nemera.Application.Common.DataAccess.Entities.Scheduling;
using Nemera.Application.Common.DataAccess.Entities.UsersManagement;
using Nemera.Application.Fixtures.Common.DataAccess.Entities.UsersManagement;
using Nemera.Contracts.Fixtures.Core.Requests.Authentication;
using Nemera.Contracts.Requests.Authentication;
using Nemera.Contracts.Responses.Authentication;
using Nemera.DataAccess.Core.UoW;
using Nemera.Domain.SharedKernel.Common.Enums.Authorization;
using Nemera.Infrastructure.Core.Security;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
@@ -26,16 +26,16 @@ using System.Text.Json.Serialization;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Maintenance.ApplicationSetup;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Maintenance.ApplicationSetup;
/// <summary>
/// Contains integration tests for the <see cref="SetupApplicationEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class SetupApplicationEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class SetupApplicationEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly UserEntityFixture _userEntityFixture = new();
private readonly RegistrationRequestFixture _registrationRequestFixture = new();
private readonly JsonSerializerOptions _jsonOptions = new()
@@ -49,7 +49,7 @@ public class SetupApplicationEndpointTests : IClassFixture<AuthenticatedLuminaAp
/// Initializes a new instance of the <see cref="SetupApplicationEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public SetupApplicationEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public SetupApplicationEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -187,7 +187,7 @@ public class SetupApplicationEndpointTests : IClassFixture<AuthenticatedLuminaAp
private async Task VerifyDefaultSetup(Guid userId)
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
// TODO: update list when defaults change.
// Verify default permissions.
@@ -228,7 +228,7 @@ public class SetupApplicationEndpointTests : IClassFixture<AuthenticatedLuminaAp
private async Task<UserEntity> CreateTestUser()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
// TODO: test default role and permissions?
UserEntity user = _userEntityFixture.Create(username: _testUsername, password: new PasswordHashService().HashString("TestPass123!"));
@@ -245,7 +245,7 @@ public class SetupApplicationEndpointTests : IClassFixture<AuthenticatedLuminaAp
public async Task DisposeAsync()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername);
if (user is not null)
@@ -1,28 +1,28 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Api.Core.Endpoints.Maintenance;
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
using Nemera.Presentation.Api.Core.Endpoints.Maintenance;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Api.IntegrationTests.Core.Endpoints.Maintenance;
namespace Nemera.Presentation.Api.IntegrationTests.Core.Endpoints.Maintenance;
/// <summary>
/// Contains integration tests for the <see cref="CheckHealthEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class CheckHealthEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class CheckHealthEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
/// <summary>
/// Initializes a new instance of the <see cref="CheckHealthEndpointTests"/> class.
/// </summary>
/// <param name="apiFactory">Injected in-memory API factory.</param>
public CheckHealthEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public CheckHealthEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;