From b4744076b7a6daa4830f777246cff8106886f7de Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 6 Feb 2026 06:52:31 -0600 Subject: [PATCH] tests: update test ring implementation --- tests/FiscalOS.API.Tests/Infra/TestKeyRing.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/FiscalOS.API.Tests/Infra/TestKeyRing.cs b/tests/FiscalOS.API.Tests/Infra/TestKeyRing.cs index 52cbb9c..090dd49 100644 --- a/tests/FiscalOS.API.Tests/Infra/TestKeyRing.cs +++ b/tests/FiscalOS.API.Tests/Infra/TestKeyRing.cs @@ -3,7 +3,7 @@ namespace FiscalOS.API.Tests.Infra; internal sealed class TestKeyRing : IKeyRing { - private readonly string _key = Convert.ToBase64String(RandomNumberGenerator.GetBytes(32)); + private string _key = Convert.ToBase64String(RandomNumberGenerator.GetBytes(32)); private TestKeyRing() { @@ -26,6 +26,8 @@ internal sealed class TestKeyRing : IKeyRing public Task SaveKeyAsync(string key) { - throw new NotImplementedException(); + _key = key; + var entry = KeyRingEntry.From(Guid.NewGuid().ToString(), key); + return Task.FromResult(entry); } } \ No newline at end of file