Private/Invoke-SqlRsCimBinding.ps1

# =============================================================================
# Script : Private/Invoke-SqlRsCimBinding.ps1
# Author : Keith Ramsey
# Created : 2026-06-08
# =============================================================================
# Change Log
# -----------------------------------------------------------------------------
# 2026-06-08 Keith Ramsey Initial: thin wrapper around Invoke-CimMethod for
# ListSSLCertificateBindings. Exists solely so Pester
# tests can mock the CIM dispatch without needing a
# real CimInstance (Invoke-CimMethod -InputObject
# enforces [CimInstance] binding before mock intercept).
# =============================================================================

function Invoke-SqlRsCimBinding {
    param(
        [object] $ConfigObject,
        [int32]  $Lcid = 1033
    )
    Invoke-CimMethod -InputObject $ConfigObject `
                     -MethodName 'ListSSLCertificateBindings' `
                     -Arguments @{ lcid = $Lcid } `
                     -ErrorAction Stop
}