public async Task <ApiResult <Object> > Execute(InputActionExecutionContainer actionContainer) { var cmd = new ExecuteInputAction(actionContainer); await cmd.Execute(); return(cmd.Result); }
public void Test() { var action = TestFactory.CreateTestInputAction(); var container = InputActionExecutionContainer.Wrap(action); cmd = new ExecuteInputAction(actionProcessor, container); cmd.Execute().Wait(1000); var result = cmd.Result; Assert.IsNotNull(result); Assert.IsTrue(result.Success); actionProcessorMock.Verify(a => a.Process(), Times.Once); }
public async Task<ApiResult<Object>> Execute(InputActionExecutionContainer actionContainer) { var cmd = new ExecuteInputAction(actionContainer); await cmd.Execute(); return cmd.Result; }