< Back

Invoke-Mock

Wed Jan 30, 2019 5:56 pm

NAME Invoke-Mock



SYNOPSIS

This command is used by Pester's Mocking framework. You do not need to call it directly.





SYNTAX

Invoke-Mock [-CommandName] <String> [-MockCallState] <Hashtable> [[-ModuleName] <String>] [[-BoundParameters] <Hashtable>] [[-ArgumentList] <Object[]>]

[[-CallerSessionState] <Object>] [[-FromBlock] <String>] [[-InputObject] <Object>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-CommandName <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MockCallState <Hashtable>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ModuleName <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BoundParameters <Hashtable>



Required? false

Position? 4

Default value @{}

Accept pipeline input? false

Accept wildcard characters? false



-ArgumentList <Object[]>



Required? false

Position? 5

Default value @()

Accept pipeline input? false

Accept wildcard characters? false



-CallerSessionState <Object>



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FromBlock <String>



Required? false

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-InputObject <Object>



Required? false

Position? 8

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS