Tests/Integration/MSFT_xWindowsPackageCab.config.ps1

param
(
    [Parameter(Mandatory = $true)]
    [System.String]
    $ConfigurationName
)

Configuration $ConfigurationName
{
    param
    (
        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [System.String]
        $Name,

        [Parameter(Mandatory = $true)]
        [ValidateSet('Present', 'Absent')]
        [System.String]
        $Ensure,

        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [System.String]
        $SourcePath,

        [ValidateNotNullOrEmpty()]
        [System.String]
        $LogPath = (Join-Path -Path (Get-Location) -ChildPath 'WindowsPackageCabTestLog.txt')
    )

    Import-DscResource -ModuleName 'xPSDesiredStateConfiguration'

    xWindowsPackageCab WindowsPackageCab1
    {
        Name = $Name
        Ensure = $Ensure
        SourcePath = $SourcePath
        LogPath = $LogPath
    }
}