Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 476 Bytes

NewServiceClient.md

File metadata and controls

6 lines (6 loc) · 476 Bytes

Mocking New-ServiceClient utility function

  • Implement your own New-ServiceClient function with mock/customized functionality in MockedNewServiceClient.ps1
  • Either rename or backup the New-ServiceClient.ps1 file under generated module base folder.
  • Copy MockedNewServiceClient.ps1 to module base folder as New-ServiceClient.ps1 file.
  • Invoke your tests to validate the cmdlets from generated module.
  • Restore the original New-ServiceClient.ps1 under module base folder.