mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Renames project content from Lumina to Nemera
This commit is contained in:
1 parent
0f659a4877
commit
c583c9327c
6127 files changed
+41884
-41884
No files matched your search
+4
-4
@@ -1,19 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Api.Common.HealthChecks;
|
||||
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
using Nemera.Presentation.Api.Common.HealthChecks;
|
||||
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Api.IntegrationTests.Core.Health;
|
||||
namespace Nemera.Presentation.Api.IntegrationTests.Core.Health;
|
||||
|
||||
/// <summary>
|
||||
/// Factory whose database health check always reports an unhealthy state.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class FailingDatabaseApiFactory : LuminaApiFactory
|
||||
public class FailingDatabaseApiFactory : NemeraApiFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Configures the web host, replacing the database health check with one that always fails.
|
||||
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.DataAccess.Core.UoW;
|
||||
using Lumina.Presentation.Api.Common.HealthChecks;
|
||||
using Nemera.DataAccess.Core.UoW;
|
||||
using Nemera.Presentation.Api.Common.HealthChecks;
|
||||
using Microsoft.Extensions.Diagnostics.HealthChecks;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Api.IntegrationTests.Core.Health;
|
||||
namespace Nemera.Presentation.Api.IntegrationTests.Core.Health;
|
||||
|
||||
/// <summary>
|
||||
/// Database health check that always reports an unhealthy state.
|
||||
@@ -19,7 +19,7 @@ internal sealed class FailingDatabaseHealthCheck : DatabaseHealthCheck
|
||||
/// Initializes a new instance of the <see cref="FailingDatabaseHealthCheck"/> class.
|
||||
/// </summary>
|
||||
/// <param name="dbContext">Injected database context.</param>
|
||||
public FailingDatabaseHealthCheck(LuminaDbContext dbContext) : base(dbContext)
|
||||
public FailingDatabaseHealthCheck(NemeraDbContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
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.Health;
|
||||
namespace Nemera.Presentation.Api.IntegrationTests.Core.Health;
|
||||
|
||||
/// <summary>
|
||||
/// Contains integration tests for the <c>/health/ready</c> probe route when the database is unreachable.
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Net;
|
||||
@@ -8,13 +8,13 @@ using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Api.IntegrationTests.Core.Health;
|
||||
namespace Nemera.Presentation.Api.IntegrationTests.Core.Health;
|
||||
|
||||
/// <summary>
|
||||
/// Contains integration tests for the <c>/health/live</c> and <c>/health/ready</c> probe routes.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class HealthEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
public class HealthEndpointTests : IClassFixture<NemeraApiFactory>
|
||||
{
|
||||
private readonly HttpClient _client;
|
||||
private readonly JsonSerializerOptions _jsonOptions = new()
|
||||
@@ -26,7 +26,7 @@ public class HealthEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
/// Initializes a new instance of the <see cref="HealthEndpointTests"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiFactory">Injected in-memory API factory.</param>
|
||||
public HealthEndpointTests(LuminaApiFactory apiFactory)
|
||||
public HealthEndpointTests(NemeraApiFactory apiFactory)
|
||||
{
|
||||
_client = apiFactory.CreateClient();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user