CodeValue.CodeCommander.Tests.Mocks.TestCommand.TestCommand C# (CSharp) Méthode

TestCommand() public méthode

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
Résultat System
        public TestCommand(CommandState state, bool shouldFailIfFiltered = false,
            Action<CommandState, Exception> startRequestAction = null, bool blockCanExecute = false, Func<ProcessorInput, bool> interpretResponseAction = null,
            bool shouldExecuteForever = false, TimeSpan? pendingTimeout = null, TimeSpan? executionTimeout = null,
            Action executeAction = null, bool shouldFailIfBlocked = false, Action<IProcessedCommand> beforeExecuteAction = null, Action<IProcessedCommand, Exception> errorAction = null,
            Action<IProcessedCommand> fullfillmentAction = null, Action<IProcessedCommand> completeAction = null, bool shouldCompleteAfterExecute = false, string groupId = null)
        {
            _startRequestAction = startRequestAction;
            _blockCanExecute = blockCanExecute;
            _interpretResponseAction = interpretResponseAction;
            _executeAction = executeAction;
            CurrentState = state;
            ShouldFailIfFiltered = shouldFailIfFiltered;
            ShouldExecuteForever = shouldExecuteForever;
            ShouldFailIfBlocked = shouldFailIfBlocked;
            ShouldCompleteAfterExecute = shouldCompleteAfterExecute;
            CommandGroup = groupId;
            PendingTimeout = pendingTimeout;
            ExecutingTimeout = executionTimeout;
            BeforeExecuteAction = beforeExecuteAction;
            CompleteAction = completeAction;
            FullfillmentAction = fullfillmentAction;
            ErrorAction = errorAction;
        }