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,9 +1,9 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.Infrastructure.Models.DTO.Configuration;
using Lumina.Domain.Common.Errors;
using Lumina.Domain.Common.Primitives;
using Lumina.Infrastructure.Core.Plugins;
using Lumina.Infrastructure.Fixtures.Common.Models.DTO.Configuration;
using Nemera.Application.Common.Infrastructure.Models.DTO.Configuration;
using Nemera.Domain.Common.Errors;
using Nemera.Domain.Common.Primitives;
using Nemera.Infrastructure.Core.Plugins;
using Nemera.Infrastructure.Fixtures.Common.Models.DTO.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using NSubstitute;
@@ -17,7 +17,7 @@ using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Infrastructure.IntegrationTests.Core.Plugins;
namespace Nemera.Infrastructure.IntegrationTests.Core.Plugins;
/// <summary>
/// Contains integration tests for the <see cref="PluginInstaller"/> class.
@@ -45,7 +45,7 @@ public class PluginInstallerTests : IDisposable
public async Task InstallAsync_WhenUploadingSingleAssembly_ShouldCopyAssemblyToPluginsDirectory()
{
// Arrange
string assemblyName = "Lumina.TestPlugin.dll";
string assemblyName = "Nemera.TestPlugin.dll";
await using FileStream stream = File.OpenRead(Path.Combine(AppContext.BaseDirectory, assemblyName));
// Act
@@ -61,7 +61,7 @@ public class PluginInstallerTests : IDisposable
{
// Arrange
await using MemoryStream zipStream = new();
CreateZipArchive(zipStream, [("nested/plugin/Lumina.TestPlugin.dll", ReadTestAssembly()), ("readme.txt", Encoding.UTF8.GetBytes("not an assembly"))]);
CreateZipArchive(zipStream, [("nested/plugin/Nemera.TestPlugin.dll", ReadTestAssembly()), ("readme.txt", Encoding.UTF8.GetBytes("not an assembly"))]);
zipStream.Position = 0;
// Act
@@ -69,7 +69,7 @@ public class PluginInstallerTests : IDisposable
// Assert
Assert.False(result.IsFailure);
Assert.True(File.Exists(Path.Combine(_pluginsDirectory, "Lumina.TestPlugin.dll")));
Assert.True(File.Exists(Path.Combine(_pluginsDirectory, "Nemera.TestPlugin.dll")));
Assert.False(File.Exists(Path.Combine(_pluginsDirectory, "readme.txt")));
}
@@ -96,7 +96,7 @@ public class PluginInstallerTests : IDisposable
{
// Arrange
const string TRAVERSAL_FILE_NAME = "traversal-test-plugin.dll";
await using FileStream stream = File.OpenRead(Path.Combine(AppContext.BaseDirectory, "Lumina.TestPlugin.dll"));
await using FileStream stream = File.OpenRead(Path.Combine(AppContext.BaseDirectory, "Nemera.TestPlugin.dll"));
// Act
Result<Success> result = await _sut.InstallAsync(stream, $@"..\{TRAVERSAL_FILE_NAME}", CancellationToken.None);
@@ -149,11 +149,11 @@ public class PluginInstallerTests : IDisposable
}
/// <summary>
/// Reads the bytes of the <c>Lumina.TestPlugin.dll</c> assembly from the test output directory.
/// Reads the bytes of the <c>Nemera.TestPlugin.dll</c> assembly from the test output directory.
/// </summary>
/// <returns>The assembly bytes.</returns>
private static byte[] ReadTestAssembly()
{
return File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Lumina.TestPlugin.dll"));
return File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Nemera.TestPlugin.dll"));
}
}
@@ -1,12 +1,12 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Infrastructure.Core.Plugins;
using Nemera.Infrastructure.Core.Plugins;
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
#endregion
namespace Lumina.Infrastructure.IntegrationTests.Core.Plugins;
namespace Nemera.Infrastructure.IntegrationTests.Core.Plugins;
/// <summary>
/// Contains integration tests for the <see cref="PluginLoadContext"/> class.
@@ -34,7 +34,7 @@ public class PluginLoadContextTests
{
// Arrange
using TemporaryPluginDirectory temporaryPluginDirectory = new();
string destinationPath = temporaryPluginDirectory.CopyDll(Path.Combine(AppContext.BaseDirectory, "Lumina.TestPlugin.dll"), "PluginLocalDependency.dll");
string destinationPath = temporaryPluginDirectory.CopyDll(Path.Combine(AppContext.BaseDirectory, "Nemera.TestPlugin.dll"), "PluginLocalDependency.dll");
PluginLoadContext sut = new(temporaryPluginDirectory.Path, "test-context");
MethodInfo loadMethod = typeof(PluginLoadContext).GetMethod("Load", BindingFlags.Instance | BindingFlags.NonPublic)!;
@@ -43,7 +43,7 @@ public class PluginLoadContextTests
// Assert
Assert.NotNull(result);
Assert.Equal("Lumina.TestPlugin", result!.GetName().Name);
Assert.Equal("Nemera.TestPlugin", result!.GetName().Name);
Assert.Equal(destinationPath, result.Location);
}
@@ -70,7 +70,7 @@ public class PluginLoadContextTests
public TemporaryPluginDirectory()
{
Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), $"lumina-plugin-load-context-{Guid.NewGuid()}");
Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), $"nemera-plugin-load-context-{Guid.NewGuid()}");
Directory.CreateDirectory(Path);
}
@@ -1,7 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Infrastructure.Common.Models.DTO.Plugins;
using Lumina.Infrastructure.Core.Plugins;
using Lumina.Plugins.Contracts.Core.Plugins;
using Nemera.Infrastructure.Common.Models.DTO.Plugins;
using Nemera.Infrastructure.Core.Plugins;
using Nemera.Plugins.Contracts.Core.Plugins;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Diagnostics.CodeAnalysis;
@@ -9,7 +9,7 @@ using System.IO;
using System.Linq;
#endregion
namespace Lumina.Infrastructure.IntegrationTests.Core.Plugins;
namespace Nemera.Infrastructure.IntegrationTests.Core.Plugins;
/// <summary>
/// Contains integration tests for the <see cref="PluginLoader"/> class.
@@ -21,7 +21,7 @@ public class PluginLoaderTests
public void LoadPlugins_WhenDirectoryDoesNotExist_ShouldReturnNoPluginsAndNoErrors()
{
// Arrange
string nonExistentDirectory = Path.Combine(Path.GetTempPath(), $"lumina-plugins-{Guid.NewGuid()}");
string nonExistentDirectory = Path.Combine(Path.GetTempPath(), $"nemera-plugins-{Guid.NewGuid()}");
IServiceCollection services = new ServiceCollection();
// Act
@@ -202,14 +202,14 @@ public class PluginLoaderTests
}
/// <summary>
/// Gets the path of the <c>Lumina.TestPlugin</c> assembly from the test output directory.
/// Gets the path of the <c>Nemera.TestPlugin</c> assembly from the test output directory.
/// The assembly is referenced by the test project but no type from it is used, so it is not loaded
/// into the default load context, which is what makes the plugin loading pipeline testable.
/// </summary>
/// <returns>The path of the test plugin assembly.</returns>
private static string GetTestPluginAssemblyPath()
{
return Path.Combine(AppContext.BaseDirectory, "Lumina.TestPlugin.dll");
return Path.Combine(AppContext.BaseDirectory, "Nemera.TestPlugin.dll");
}
/// <summary>
@@ -233,7 +233,7 @@ public class PluginLoaderTests
public TemporaryPluginDirectory()
{
Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), $"lumina-plugin-loader-{Guid.NewGuid()}");
Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), $"nemera-plugin-loader-{Guid.NewGuid()}");
Directory.CreateDirectory(Path);
}