namespace ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers.Pickers;

/// <summary>
/// Pure static helper that converts a FOCAS parameter group + parameter ID
/// into the canonical address string (e.g. axis:5).
/// Extracted so unit tests can call it without bUnit.
/// </summary>
public static class FocasAddressBuilder
{
    /// <summary>Builds the canonical FOCAS address string from a parameter group and parameter ID.</summary>
    /// <param name="group">The FOCAS parameter group (e.g. <c>"axis"</c>).</param>
    /// <param name="parameterId">The parameter ID within the group.</param>
    /// <returns>The canonical address string in <c>group:parameterId</c> form (e.g. <c>axis:5</c>).</returns>
    public static string Build(string group, int parameterId)
        => $"{group}:{parameterId}";
}
