Completes the scheduled jobs module with default jobs, a themed scheduler page and aligned recovery semantics

This commit is contained in:
BinaryAlley committed 2026-09-04 13:56:04 -07:00
1 parent 99a6159f7f
commit 4b7cfbbe11
67 files changed
+3324 -745

No files matched your search

@@ -0,0 +1,34 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Core.BoundedContexts.SchedulingBoundedContext.ScheduledJobAggregate.ValueObjects;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
#endregion
namespace Lumina.Domain.Fixtures.Core.BoundedContexts.SchedulingBoundedContext.ScheduledJobAggregate.ValueObjects;
/// <summary>
/// Fixture class for the <see cref="OnceAtStartupSchedule"/> value object.
/// </summary>
[ExcludeFromCodeCoverage]
public class OnceAtStartupScheduleFixture
{
/// <summary>
/// Creates a valid <see cref="OnceAtStartupSchedule"/>.
/// </summary>
/// <returns>The created <see cref="OnceAtStartupSchedule"/>.</returns>
public OnceAtStartupSchedule Create()
{
return OnceAtStartupSchedule.Create().Value;
}
/// <summary>
/// Creates a list of <see cref="OnceAtStartupSchedule"/> instances.
/// </summary>
/// <param name="count">Number of instances to create.</param>
/// <returns>List of configured <see cref="OnceAtStartupSchedule"/> instances.</returns>
public List<OnceAtStartupSchedule> CreateMany(int count = 3)
{
return [.. Enumerable.Range(0, count).Select(_ => Create())];
}
}