using ZB.MOM.WW.MxGateway.Worker.MxAccess;

namespace ZB.MOM.WW.MxGateway.Worker.Tests.TestSupport;

/// <summary>
/// Shared no-operation <see cref="IMxAccessEventSink"/> for tests that construct
/// an <see cref="MxAccessStaSession"/> but do not exercise the event sink.
/// Replaces the per-file <c>NoopEventSink</c>/<c>NullEventSink</c> copies that
/// were previously defined independently in MxAccessCommandExecutorTests and
/// AlarmCommandExecutorTests.
/// </summary>
internal sealed class NoopEventSink : IMxAccessEventSink
{
    /// <inheritdoc />
    public void Attach(object mxAccessComObject, string sessionId)
    {
    }

    /// <inheritdoc />
    public void Detach()
    {
    }
}
