using ZB.MOM.WW.MxGateway.Server.Alarms; using ZB.MOM.WW.MxGateway.Server.Configuration; namespace ZB.MOM.WW.MxGateway.IntegrationTests.TestSupport; /// /// No-op for integration tests that /// construct a only to satisfy the /// /// constructor. The live MXAccess smoke tests never exercise the alarm /// monitor, so the resolver always yields an empty watch-list rather than /// touching the Galaxy Repository the production /// requires. Singleton because the type /// holds no state — every consumer can share . /// public sealed class EmptyAlarmWatchListResolver : IAlarmWatchListResolver { /// Shared no-op instance. public static readonly EmptyAlarmWatchListResolver Instance = new(); private static readonly AlarmWatchListResolution Empty = new( [], DiscoveryAttempted: false, DiscoveryFailed: false, DiscoveryFailureMessage: null); private EmptyAlarmWatchListResolver() { } /// public Task ResolveAsync( AlarmsOptions options, CancellationToken cancellationToken = default) { return Task.FromResult(Empty); } }