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); }
public void HandleTestCommand <T>(Ns03_SimpleTestGenericCommand <T> command) { command.Out = "result"; }