コード例 #1
0
        public void Can_run_default_simple_generic_command()
        {
            // Arrange
            var builder = pipelineService.PipelineContainer.AddCommandPipeline();

            SetupCommandPipeline(builder);
            var cmd = new Ns03_SimpleTestGenericCommand <string> {
                Id = "99"
            };

            // Act
            pipelineService.HandleCommand(cmd);

            // Assert
            Assert.Equal("99", cmd.Id);
            Assert.Equal("result", cmd.Out);
        }
コード例 #2
0
 public void HandleTestCommand <T>(Ns03_SimpleTestGenericCommand <T> command)
 {
     command.Out = "result";
 }