mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13: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
+7
-7
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.DataAccess.Core.UoW;
|
||||
using Nemera.DataAccess.Core.UoW;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
namespace Nemera.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
|
||||
/// <summary>
|
||||
/// Helpers shared by the theme integration tests.
|
||||
@@ -17,11 +17,11 @@ namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup;
|
||||
public static class ThemeTestHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Waits until the bundled 'lumina-default' theme has been installed and activated by the theme detection job at startup.
|
||||
/// Waits until the bundled 'nemera-default' theme has been installed and activated by the theme detection job at startup.
|
||||
/// </summary>
|
||||
/// <param name="apiFactory">The shared API factory whose database is polled.</param>
|
||||
/// <returns>A task representing the asynchronous operation.</returns>
|
||||
public static async Task WaitForBundledThemeAsync(AuthenticatedLuminaApiFactory apiFactory)
|
||||
public static async Task WaitForBundledThemeAsync(AuthenticatedNemeraApiFactory apiFactory)
|
||||
{
|
||||
const int MAX_ATTEMPTS = 100;
|
||||
const int DELAY_MILLISECONDS = 100;
|
||||
@@ -29,14 +29,14 @@ public static class ThemeTestHelpers
|
||||
for (int attempt = 0; attempt < MAX_ATTEMPTS; attempt++)
|
||||
{
|
||||
using IServiceScope scope = apiFactory.Services.CreateScope();
|
||||
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
|
||||
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
|
||||
|
||||
if (await dbContext.Themes.AnyAsync(theme => theme.ThemeId == "lumina-default" && theme.IsCurrent == true))
|
||||
if (await dbContext.Themes.AnyAsync(theme => theme.ThemeId == "nemera-default" && theme.IsCurrent == true))
|
||||
return;
|
||||
|
||||
await Task.Delay(DELAY_MILLISECONDS);
|
||||
}
|
||||
|
||||
Assert.Fail("The bundled theme 'lumina-default' was not installed and activated within the expected time.");
|
||||
Assert.Fail("The bundled theme 'nemera-default' was not installed and activated within the expected time.");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user