Пример #1
0
        public async Task <ApiResult <Object> > Execute(InputActionExecutionContainer actionContainer)
        {
            var cmd = new ExecuteInputAction(actionContainer);
            await cmd.Execute();

            return(cmd.Result);
        }
Пример #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);
        }
Пример #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);
        }
Пример #4
0
 public async Task<ApiResult<Object>> Execute(InputActionExecutionContainer actionContainer)
 {
     var cmd = new ExecuteInputAction(actionContainer);
     await cmd.Execute();
     return cmd.Result;
 }