Add persisted runtime settings page with cookie login

This commit is contained in:
Tom committed 2026-11-14 13:54:02 +01:00
1 parent b561924efa
commit 37987a394a
43 files changed
+1346 -61

No files matched your search

+2 -3
View File
@@ -2,7 +2,6 @@ using System.Net;
using Flypaper.Core;
using Flypaper.Core.Strategies;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using NSubstitute;
using Shouldly;
@@ -75,12 +74,12 @@ public sealed class TrapRunnerTests
private TrapRunner CreateRunner(TimeSpan maxHoldDuration)
{
var drip = new DripStrategy(Options.Create(new DripOptions { Interval = TimeSpan.FromMilliseconds(20) }), TimeProvider.System);
var drip = new DripStrategy(TestOptions.Monitor(new DripOptions { Interval = TimeSpan.FromMilliseconds(20) }), TimeProvider.System);
return new TrapRunner(
_governor,
[drip],
_sink,
Options.Create(new FlypaperOptions { MaxHoldDuration = maxHoldDuration }),
TestOptions.Monitor(new FlypaperOptions { MaxHoldDuration = maxHoldDuration }),
TimeProvider.System,
NullLogger<TrapRunner>.Instance);
}