From 91f9b5553cb9e6636bf5ce41c8cd23bf166664d1 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 23 Oct 2026 02:46:19 +0200 Subject: [PATCH] Economy fixture: keyed writes through UpsertAsync --- tests/Aetheria.Shared.Tests/EconomyFixture.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/EconomyFixture.cs b/tests/Aetheria.Shared.Tests/EconomyFixture.cs index 0f9f34056..083679ebd 100644 --- a/tests/Aetheria.Shared.Tests/EconomyFixture.cs +++ b/tests/Aetheria.Shared.Tests/EconomyFixture.cs @@ -143,3 +143,10 @@ public sealed class EconomyFixture : IDisposable return f; } } + +internal static class EconomyUpserts +{ + // A write under a readable key: the cache's own keyed write, completed synchronously. + public static CultRecordKey Upsert(this CultCache cache, Type type, object document, CultRecordKey key) => + cache.UpsertAsync(type, document, key).GetAwaiter().GetResult(); +}