DSCResources/xIISApplicationPoolIdentityType/test.ps1

Configuration X
{
    Import-DscResource -module admin*
    Node localhost
    {
        xIISApplicationPoolIdentityType Pool1
        {
            Pool = "Pool1"
            Identity = "xxxx"
            IdentityType = "SpecificUser"
        }
                xIISApplicationPoolIdentityType asd
        {
            Pool = "asd"
            ##UserName = "asdasdsa"
            ##Password = "xxxx"
            IdentityType = "SpecificUser"
        }
    }
}
X
Start-DscConfiguration c:\x -Verbose -Force -Wait
Test-iisxTargetResource -IdentityType ApplicationPoolIdentity -UserName asd -Password asd -Pool 11 -Verbose
set-iisxTargetResource -IdentityType ApplicationPoolIdentity -UserName asd -Password a1sd -Pool 11
get-iisxTargetResource -IdentityType ApplicationPoolIdentity -UserName asd -Password a1sd -Pool 11