test(acl): mutable default-fill store — update replaces current (refs #131)

This commit is contained in:
not
2026-07-24 15:34:34 +02:00
parent fff88ca23d
commit dabf4f4995
4 changed files with 72 additions and 0 deletions
@@ -0,0 +1,19 @@
namespace Acl.Application;
/// <summary>In-memory <see cref="IDefaultFillStore"/> (ADR-0026), seeded from config. Thread-safe: the
/// hosted worker reads <see cref="Current"/> per zaak while the beheer endpoint may update it.</summary>
public sealed class InMemoryDefaultFillStore(DefaultFillSettings seed) : IDefaultFillStore
{
private readonly object _gate = new();
private DefaultFillSettings _current = seed;
public DefaultFillSettings Current
{
get { lock (_gate) return _current; }
}
public void Update(DefaultFillSettings settings)
{
// ponytail: red stub — real assignment lands in the green commit.
}
}