Skip to content

Commit

Permalink
ADUser: Test SamAccountName parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed May 20, 2021
1 parent 47c730e commit 58c5831
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Unit/Stubs/ActiveDirectory_2019.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -13091,6 +13091,16 @@ function New-ADUser {
$parameter = New-Object System.Management.Automation.RuntimeDefinedParameter("DisplayName", [System.String], $attributes)
$parameters.Add("DisplayName", $parameter)

# SamAccountName
$attributes = New-Object System.Collections.Generic.List[Attribute]

$attribute = New-Object System.Management.Automation.ParameterAttribute
$attribute.ValueFromPipelineByPropertyName = $True
$attributes.Add($attribute)

$parameter = New-Object System.Management.Automation.RuntimeDefinedParameter("SamAccountName", [System.String], $attributes)
$parameters.Add("SamAccountName", $parameter)

# Division
$attributes = New-Object System.Collections.Generic.List[Attribute]

Expand Down Expand Up @@ -22930,6 +22940,16 @@ Set-ADUser -Instance <ADUser> [-WhatIf] [-Confirm] [-AuthType <ADAuthType>] [-Cr
$parameter = New-Object System.Management.Automation.RuntimeDefinedParameter("DisplayName", [System.String], $attributes)
$parameters.Add("DisplayName", $parameter)

# SamAccountName
$attributes = New-Object System.Collections.Generic.List[Attribute]

$attribute = New-Object System.Management.Automation.ParameterAttribute
$attribute.ParameterSetName = "Identity"
$attributes.Add($attribute)

$parameter = New-Object System.Management.Automation.RuntimeDefinedParameter("SamAccountName", [System.String], $attributes)
$parameters.Add("SamAccountName", $parameter)

# Division
$attributes = New-Object System.Collections.Generic.List[Attribute]

Expand Down

0 comments on commit 58c5831

Please sign in to comment.