moelmasri
Results
comments of
moelmasri
I've been able to mock class methods using the following as an example: `$testObj = New-MockObject System.DirectoryServices.AccountManagement.PrincipalContext` `$testobj = $testObj | Add-Member -MemberType ScriptMethod -Name ValidateCredentials -Value { $true }...