using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Services; namespace ZB.MOM.WW.ScadaBridge.AuditLog.Tests.TestSupport; /// /// Test fake for . Returns the configured /// verbatim — including null — so tests can /// exercise both the "stamped" and "unconfigured" branches of the SourceNode /// stamping logic in /// and . /// internal sealed class FakeNodeIdentityProvider : INodeIdentityProvider { // Returns the configured node name, which may be null. /// public string? NodeName { get; } /// Initializes the fake with the node name to report. /// The node name to report, or null for none. public FakeNodeIdentityProvider(string? nodeName = null) { NodeName = nodeName; } }