예제 #1
0
        public void Can_run_default_simple_pipeline()
        {
            // Arrange
            var builder = pipelineService.PipelineContainer.AddCommandPipeline();

            SetupCommandPipeline(builder);
            var cmd = new Ns02_SimpleTestCommand {
                Id = 5
            };

            // Act
            pipelineService.HandleCommand(cmd);

            // Assert
            Assert.Equal("result", cmd.Out);
        }
예제 #2
0
 public void HandleTestCommand(Ns02_SimpleTestCommand command)
 {
     command.Out = "result";
 }