Exemplo n.º 1
0
        public async Task <ApiResult <Object> > Execute(InputActionExecutionContainer actionContainer)
        {
            var cmd = new ExecuteInputAction(actionContainer);
            await cmd.Execute();

            return(cmd.Result);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public async Task<ApiResult<Object>> Execute(InputActionExecutionContainer actionContainer)
 {
     var cmd = new ExecuteInputAction(actionContainer);
     await cmd.Execute();
     return cmd.Result;
 }