using ZB.MOM.WW.OtOpcUa.Runtime.Drivers;
namespace ZB.MOM.WW.OtOpcUa.Runtime.Tests.Harness;
///
/// Builds the ONE message shape a driver child sends for its values — a
/// — for tests that push a single value into the
/// dependency mux by hand. The per-value has no
/// production sender (02/U4); tests should not keep one alive either.
///
public static class ValuePublishes
{
/// A one-item batch for .
/// The publishing driver's id.
/// The value's reference (RawPath).
/// The value.
/// The full OPC UA status code.
/// The source timestamp.
/// The batch message.
public static DriverInstanceActor.AttributeValueBatchPublished Single(
string driverInstanceId, string fullReference, object? value, uint statusCode, DateTime timestampUtc) =>
new(driverInstanceId, new[] { new DriverInstanceActor.AttributeValueItem(fullReference, value, statusCode, timestampUtc) });
}