using ZB.MOM.WW.Secrets.Abstractions; using ZB.MOM.WW.Audit; internal static class SecretsCanaryFixtures { public static void Register(IServiceCollection services) { IReadOnlyList metadata = new[] { "fixture/alpha", "fixture/" + new string('x', 400) }.Select(name => new SecretMetadata { Name = new SecretName(name), Description = "Synthetic local metadata", ContentType = SecretContentType.Text, KekId = "synthetic-key-id", Revision = 1, CreatedUtc = DateTimeOffset.Parse("2026-11-13T12:00:00Z"), UpdatedUtc = DateTimeOffset.Parse("2026-11-13T12:00:00Z"), UpdatedBy = "synthetic reviewer" }).ToArray(); services.AddSingleton(ReadOnlyFixtureProxy.WithReads(new Dictionary> { ["ListAsync"] = _ => Task.FromResult(metadata), ["GetAsync"] = _ => throw new InvalidOperationException("Local metadata canary rejects value reads.") })); services.AddSingleton(ReadOnlyFixtureProxy.EmptyReads()); services.AddSingleton(ReadOnlyFixtureProxy.EmptyReads()); } }