using SIGCM2.TestSupport; using Xunit; namespace SIGCM2.Api.Tests; /// /// Shared collection for all Api integration tests. /// Uses ICollectionFixture so a SINGLE TestWebAppFactory (and its RSA key singleton) /// is shared across all test classes in the "ApiIntegration" collection. /// /// Previously each class used IClassFixture which spawned one factory per class; /// that created N factories sequentially in the same process, and the RSA key /// singleton from an earlier factory could leak into a later factory's DI graph /// (producing ObjectDisposedException "RSABCrypt" on first signing). /// [CollectionDefinition("ApiIntegration")] public sealed class ApiIntegrationCollection : ICollectionFixture { // Intentionally empty: this class only exists to declare the collection/fixture binding. }