using Kbx.Shared.Integrations.Generated; using Xunit; namespace Kbx.Shared.Integrations.Tests; public sealed class KbxDurableIntegrationRetryPlannerTests { [Fact] public void StopsAfterConfiguredDurableAttempts() { var d = KbxIntegrationCatalog.All["integration.oms.wms.dispatch"]; var now = new DateTimeOffset(2026,8,8,9,0,0,TimeSpan.Zero); Assert.NotNull(KbxDurableIntegrationRetryPlanner.NextAttemptAt(d, 1, now)); Assert.Null(KbxDurableIntegrationRetryPlanner.NextAttemptAt(d, d.LongRetryAttempts + 1, now)); } }