C# Class Microsoft.WindowsAzure.Commands.Test.Utilities.Common.MockCommandRuntime

Inheritance: ICommandRuntime
Exibir arquivo Open project: AzureRT/azure-sdk-tools Class Usage Examples

Public Properties

Property Type Description
DebugStream List
ErrorStream List
OutputPipeline List
VerboseStream List
WarningStream List

Private Properties

Property Type Description

Public Methods

Method Description
ResetPipelines ( ) : void

Clears all command runtime pipelines.

ShouldContinue ( string query, string caption ) : bool
ShouldContinue ( string query, string caption, bool &yesToAll, bool &noToAll ) : bool
ShouldProcess ( string target ) : bool
ShouldProcess ( string target, string action ) : bool
ShouldProcess ( string verboseDescription, string verboseWarning, string caption ) : bool
ShouldProcess ( string verboseDescription, string verboseWarning, string caption, ShouldProcessReason &shouldProcessReason ) : bool
ThrowTerminatingError ( ErrorRecord errorRecord ) : void
ToString ( ) : string
TransactionAvailable ( ) : bool
WriteCommandDetail ( string text ) : void
WriteDebug ( string text ) : void
WriteError ( ErrorRecord errorRecord ) : void
WriteObject ( object sendToPipeline ) : void
WriteObject ( object sendToPipeline, bool enumerateCollection ) : void
WriteProgress ( ProgressRecord progressRecord ) : void
WriteProgress ( long sourceId, ProgressRecord progressRecord ) : void
WriteVerbose ( string text ) : void
WriteWarning ( string text ) : void

Method Details

ResetPipelines() public method

Clears all command runtime pipelines.
public ResetPipelines ( ) : void
return void

ShouldContinue() public method

public ShouldContinue ( string query, string caption ) : bool
query string
caption string
return bool

ShouldContinue() public method

public ShouldContinue ( string query, string caption, bool &yesToAll, bool &noToAll ) : bool
query string
caption string
yesToAll bool
noToAll bool
return bool

ShouldProcess() public method

public ShouldProcess ( string target ) : bool
target string
return bool

ShouldProcess() public method

public ShouldProcess ( string target, string action ) : bool
target string
action string
return bool

ShouldProcess() public method

public ShouldProcess ( string verboseDescription, string verboseWarning, string caption ) : bool
verboseDescription string
verboseWarning string
caption string
return bool

ShouldProcess() public method

public ShouldProcess ( string verboseDescription, string verboseWarning, string caption, ShouldProcessReason &shouldProcessReason ) : bool
verboseDescription string
verboseWarning string
caption string
shouldProcessReason ShouldProcessReason
return bool

ThrowTerminatingError() public method

public ThrowTerminatingError ( ErrorRecord errorRecord ) : void
errorRecord System.Management.Automation.ErrorRecord
return void

ToString() public method

public ToString ( ) : string
return string

TransactionAvailable() public method

public TransactionAvailable ( ) : bool
return bool

WriteCommandDetail() public method

public WriteCommandDetail ( string text ) : void
text string
return void

WriteDebug() public method

public WriteDebug ( string text ) : void
text string
return void

WriteError() public method

public WriteError ( ErrorRecord errorRecord ) : void
errorRecord ErrorRecord
return void

WriteObject() public method

public WriteObject ( object sendToPipeline ) : void
sendToPipeline object
return void

WriteObject() public method

public WriteObject ( object sendToPipeline, bool enumerateCollection ) : void
sendToPipeline object
enumerateCollection bool
return void

WriteProgress() public method

public WriteProgress ( ProgressRecord progressRecord ) : void
progressRecord ProgressRecord
return void

WriteProgress() public method

public WriteProgress ( long sourceId, ProgressRecord progressRecord ) : void
sourceId long
progressRecord ProgressRecord
return void

WriteVerbose() public method

public WriteVerbose ( string text ) : void
text string
return void

WriteWarning() public method

public WriteWarning ( string text ) : void
text string
return void

Property Details

DebugStream public_oe property

public List DebugStream
return List

ErrorStream public_oe property

public List ErrorStream
return List

OutputPipeline public_oe property

public List OutputPipeline
return List

VerboseStream public_oe property

public List VerboseStream
return List

WarningStream public_oe property

public List WarningStream
return List