feat(cli): add enable/disable condition commands (H4 client path)

This commit is contained in:
Joseph Doherty
2026-06-19 01:48:21 -04:00
parent eb328e5761
commit 88d5ba45bf
10 changed files with 488 additions and 0 deletions
@@ -262,6 +262,32 @@ public sealed class FakeOpcUaClientService : IOpcUaClientService
return Task.FromResult(ShelveAlarmResult);
}
/// <summary>Gets the list of condition node IDs passed to EnableAsync calls.</summary>
public List<string> EnableCalls { get; } = [];
/// <summary>Gets or sets the status code returned by EnableAsync.</summary>
public StatusCode EnableResult { get; set; } = StatusCodes.Good;
/// <inheritdoc />
public Task<StatusCode> EnableAsync(string conditionNodeId, CancellationToken ct = default)
{
EnableCalls.Add(conditionNodeId);
return Task.FromResult(EnableResult);
}
/// <summary>Gets the list of condition node IDs passed to DisableAsync calls.</summary>
public List<string> DisableCalls { get; } = [];
/// <summary>Gets or sets the status code returned by DisableAsync.</summary>
public StatusCode DisableResult { get; set; } = StatusCodes.Good;
/// <inheritdoc />
public Task<StatusCode> DisableAsync(string conditionNodeId, CancellationToken ct = default)
{
DisableCalls.Add(conditionNodeId);
return Task.FromResult(DisableResult);
}
/// <inheritdoc />
public Task<IReadOnlyList<DataValue>> HistoryReadRawAsync(
NodeId nodeId, DateTime startTime, DateTime endTime, int maxValues = 1000, CancellationToken ct = default)