Renames project paths from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:34:43 +02:00
1 parent ce6fddb4c9
commit 0f659a4877
6450 files changed

No files matched your search

@@ -0,0 +1,44 @@
#region ========================================================================= USING =====================================================================================
using Bogus;
using Lumina.Application.Core.Plugins.Commands.InstallPlugin;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
#endregion
namespace Lumina.Application.Fixtures.Core.Plugins.Commands.InstallPlugin;
/// <summary>
/// Fixture class for the <see cref="InstallPluginCommand"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class InstallPluginCommandFixture
{
private readonly Faker _faker = new();
/// <summary>
/// Creates a valid <see cref="InstallPluginCommand"/>.
/// </summary>
/// <param name="archive">Optional. The archive stream of the uploaded plugin.</param>
/// <param name="fileName">Optional. The file name of the uploaded plugin.</param>
/// <returns>The created <see cref="InstallPluginCommand"/>.</returns>
public InstallPluginCommand Create(
Stream? archive = null,
string? fileName = null)
{
return new InstallPluginCommand(
archive ?? new MemoryStream(_faker.Random.Bytes(64)),
fileName ?? $"{_faker.Hacker.Noun()}.dll");
}
/// <summary>
/// Creates a list of <see cref="InstallPluginCommand"/> instances with randomized test data.
/// </summary>
/// <param name="count">Number of instances to create.</param>
/// <returns>List of configured <see cref="InstallPluginCommand"/> instances.</returns>
public List<InstallPluginCommand> CreateMany(int count = 3)
{
return [.. Enumerable.Range(0, count).Select(_ => Create())];
}
}
@@ -0,0 +1,44 @@
#region ========================================================================= USING =====================================================================================
using Bogus;
using Lumina.Application.Core.Plugins.Commands.UpdatePluginSettings;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
#endregion
namespace Lumina.Application.Fixtures.Core.Plugins.Commands.UpdatePluginSettings;
/// <summary>
/// Fixture class for the <see cref="UpdatePluginSettingsCommand"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class UpdatePluginSettingsCommandFixture
{
/// <summary>
/// Creates a random valid command to update the settings of a plugin.
/// </summary>
/// <param name="pluginId">Optional. The Id of the plugin.</param>
/// <param name="settings">Optional. The settings of the plugin.</param>
/// <returns>The created command.</returns>
public UpdatePluginSettingsCommand Create(Guid? pluginId = null, IReadOnlyDictionary<string, string>? settings = null)
{
return new Faker<UpdatePluginSettingsCommand>()
.CustomInstantiator(f => new UpdatePluginSettingsCommand(
default,
default!))
.RuleFor(x => x.PluginId, pluginId ?? Guid.NewGuid())
.RuleFor(x => x.Settings, f => settings ?? new Dictionary<string, string> { [f.Lorem.Word()] = f.Lorem.Word() })
.Generate();
}
/// <summary>
/// Creates a list of <see cref="UpdatePluginSettingsCommand"/>.
/// </summary>
/// <param name="count">The number of elements to create.</param>
/// <returns>The created list.</returns>
public List<UpdatePluginSettingsCommand> CreateMany(int count = 3)
{
return [.. Enumerable.Range(0, count).Select(_ => Create())];
}
}