C# Class CodeValue.CodeCommander.Tests.Mocks.TestCommand

Inheritance: System.CommandBase
Mostra file Open project: arielbh/CodeCommander Class Usage Examples

Public Methods

Method Description
CanExecute ( ) : bool
Execute ( ) : void
InterpretResponse ( ProcessorInput response ) : bool
StartRequest ( CommandState currentState, Exception exception ) : void
TestCommand ( CommandState state, bool shouldFailIfFiltered = false, Exception>.Action startRequestAction = null, bool blockCanExecute = false, bool>.Func interpretResponseAction = null, bool shouldExecuteForever = false, System.TimeSpan pendingTimeout = null, System.TimeSpan executionTimeout = null, System.Action executeAction = null, bool shouldFailIfBlocked = false, Action beforeExecuteAction = null, Exception>.Action errorAction = null, Action fullfillmentAction = null, Action completeAction = null, bool shouldCompleteAfterExecute = false, string groupId = null ) : System

Method Details

CanExecute() public method

public CanExecute ( ) : bool
return bool

Execute() public method

public Execute ( ) : void
return void

InterpretResponse() public method

public InterpretResponse ( ProcessorInput response ) : bool
response ProcessorInput
return bool

StartRequest() public method

public StartRequest ( CommandState currentState, Exception exception ) : void
currentState CommandState
exception System.Exception
return void

TestCommand() public method

public TestCommand ( CommandState state, bool shouldFailIfFiltered = false, Exception>.Action startRequestAction = null, bool blockCanExecute = false, bool>.Func interpretResponseAction = null, bool shouldExecuteForever = false, System.TimeSpan pendingTimeout = null, System.TimeSpan executionTimeout = null, System.Action executeAction = null, bool shouldFailIfBlocked = false, Action beforeExecuteAction = null, Exception>.Action errorAction = null, Action fullfillmentAction = null, Action completeAction = null, bool shouldCompleteAfterExecute = false, string groupId = null ) : System
state CommandState
shouldFailIfFiltered bool
startRequestAction Exception>.Action
blockCanExecute bool
interpretResponseAction bool>.Func
shouldExecuteForever bool
pendingTimeout System.TimeSpan
executionTimeout System.TimeSpan
executeAction System.Action
shouldFailIfBlocked bool
beforeExecuteAction Action
errorAction Exception>.Action
fullfillmentAction Action
completeAction Action
shouldCompleteAfterExecute bool
groupId string
return System