mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Renames project paths from Lumina to Nemera
This commit is contained in:
1 parent
ce6fddb4c9
commit
0f659a4877
6450 files changed
No files matched your search
+38
@@ -0,0 +1,38 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Commands.DeleteTheme;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Commands.DeleteTheme;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="DeleteThemeCommand"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class DeleteThemeCommandFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="DeleteThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="themeId">Optional manifest id of the theme to delete.</param>
|
||||
/// <returns>The created <see cref="DeleteThemeCommand"/>.</returns>
|
||||
public DeleteThemeCommand Create(string? themeId = null)
|
||||
{
|
||||
return new DeleteThemeCommand(themeId ?? _faker.Lorem.Slug(2));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="DeleteThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<DeleteThemeCommand> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Commands.InstallTheme;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Commands.InstallTheme;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="InstallThemeCommand"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class InstallThemeCommandFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="InstallThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="archive">Optional ZIP archive stream of the theme pack.</param>
|
||||
/// <param name="fileName">Optional file name of the uploaded archive.</param>
|
||||
/// <returns>The created <see cref="InstallThemeCommand"/>.</returns>
|
||||
public InstallThemeCommand Create(Stream? archive = null, string? fileName = null)
|
||||
{
|
||||
Stream resolvedArchive = archive ?? new MemoryStream(Encoding.UTF8.GetBytes(_faker.Lorem.Paragraph()));
|
||||
return new InstallThemeCommand(resolvedArchive, fileName ?? $"{_faker.Lorem.Word()}.zip");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="InstallThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<InstallThemeCommand> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Commands.RestoreTheme;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Commands.RestoreTheme;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="RestoreThemeCommand"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class RestoreThemeCommandFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="RestoreThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="themeId">Optional manifest id of the theme to restore.</param>
|
||||
/// <returns>The created <see cref="RestoreThemeCommand"/>.</returns>
|
||||
public RestoreThemeCommand Create(string? themeId = null)
|
||||
{
|
||||
return new RestoreThemeCommand(themeId ?? _faker.Lorem.Slug(2));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="RestoreThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<RestoreThemeCommand> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Commands.SetCurrentTheme;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Commands.SetCurrentTheme;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="SetCurrentThemeCommand"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class SetCurrentThemeCommandFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="SetCurrentThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="themeId">Optional manifest id of the theme to activate.</param>
|
||||
/// <returns>The created <see cref="SetCurrentThemeCommand"/>.</returns>
|
||||
public SetCurrentThemeCommand Create(string? themeId = null)
|
||||
{
|
||||
return new SetCurrentThemeCommand(themeId ?? _faker.Lorem.Slug(2));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="SetCurrentThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<SetCurrentThemeCommand> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Core.Themes.Management.Queries.GetCurrentTheme;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Queries.GetCurrentTheme;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="GetCurrentThemeQuery"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetCurrentThemeQueryFixture
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a <see cref="GetCurrentThemeQuery"/>.
|
||||
/// </summary>
|
||||
/// <returns>The created <see cref="GetCurrentThemeQuery"/>.</returns>
|
||||
public GetCurrentThemeQuery Create()
|
||||
{
|
||||
return new GetCurrentThemeQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="GetCurrentThemeQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<GetCurrentThemeQuery> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Queries.GetThemeArchive;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Queries.GetThemeArchive;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="GetThemeArchiveQuery"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetThemeArchiveQueryFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="GetThemeArchiveQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="themeId">Optional manifest id of the theme.</param>
|
||||
/// <returns>The created <see cref="GetThemeArchiveQuery"/>.</returns>
|
||||
public GetThemeArchiveQuery Create(string? themeId = null)
|
||||
{
|
||||
return new GetThemeArchiveQuery(themeId ?? _faker.Lorem.Slug(2));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="GetThemeArchiveQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<GetThemeArchiveQuery> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Queries.GetThemeAsset;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Queries.GetThemeAsset;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="GetThemeAssetQuery"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetThemeAssetQueryFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="GetThemeAssetQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="themeId">Optional manifest id of the theme.</param>
|
||||
/// <param name="assetPath">Optional asset path relative to the theme pack root.</param>
|
||||
/// <returns>The created <see cref="GetThemeAssetQuery"/>.</returns>
|
||||
public GetThemeAssetQuery Create(string? themeId = null, string? assetPath = null)
|
||||
{
|
||||
return new GetThemeAssetQuery(
|
||||
themeId ?? _faker.Lorem.Slug(2),
|
||||
assetPath ?? _faker.System.FilePath());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="GetThemeAssetQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<GetThemeAssetQuery> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Core.Themes.Management.Queries.GetThemeSettings;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Queries.GetThemeSettings;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="GetThemeSettingsQuery"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetThemeSettingsQueryFixture
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a <see cref="GetThemeSettingsQuery"/>.
|
||||
/// </summary>
|
||||
/// <returns>The created <see cref="GetThemeSettingsQuery"/>.</returns>
|
||||
public GetThemeSettingsQuery Create()
|
||||
{
|
||||
return new GetThemeSettingsQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="GetThemeSettingsQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<GetThemeSettingsQuery> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.Themes.Management.Queries.GetThemeTemplate;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Queries.GetThemeTemplate;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="GetThemeTemplateQuery"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetThemeTemplateQueryFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="GetThemeTemplateQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="themeId">Optional manifest id of the theme.</param>
|
||||
/// <param name="pageKey">Optional page key that selects the template.</param>
|
||||
/// <returns>The created <see cref="GetThemeTemplateQuery"/>.</returns>
|
||||
public GetThemeTemplateQuery Create(string? themeId = null, string? pageKey = null)
|
||||
{
|
||||
return new GetThemeTemplateQuery(
|
||||
themeId ?? _faker.Lorem.Slug(2),
|
||||
pageKey ?? _faker.Lorem.Word());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="GetThemeTemplateQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<GetThemeTemplateQuery> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Core.Themes.Management.Queries.GetThemes;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Fixtures.Core.Themes.Management.Queries.GetThemes;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture class for the <see cref="GetThemesQuery"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetThemesQueryFixture
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a <see cref="GetThemesQuery"/>.
|
||||
/// </summary>
|
||||
/// <returns>The created <see cref="GetThemesQuery"/>.</returns>
|
||||
public GetThemesQuery Create()
|
||||
{
|
||||
return new GetThemesQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of <see cref="GetThemesQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of elements to create.</param>
|
||||
/// <returns>The created list.</returns>
|
||||
public List<GetThemesQuery> CreateMany(int count = 3)
|
||||
{
|
||||
return [.. Enumerable.Range(0, count).Select(_ => Create())];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user