feat(commons): IOpcUaNodeWriteGateway + NodeWriteOutcome for write-outcome routing

This commit is contained in:
Joseph Doherty
2026-06-14 01:20:14 -04:00
parent 8a79cb0ec7
commit 0f7c47a559
2 changed files with 52 additions and 0 deletions
@@ -0,0 +1,16 @@
using Shouldly;
using Xunit;
using ZB.MOM.WW.OtOpcUa.Commons.OpcUa;
namespace ZB.MOM.WW.OtOpcUa.Commons.Tests.OpcUa;
public class NullOpcUaNodeWriteGatewayTests
{
[Fact]
public async Task NullGateway_returns_writes_unavailable()
{
var outcome = await NullOpcUaNodeWriteGateway.Instance.WriteAsync("ns=2;s=x", 1, TestContext.Current.CancellationToken);
outcome.Success.ShouldBeFalse();
outcome.Reason.ShouldBe("writes unavailable");
}
}