public void Can_run_default_simple_generic_command_with_two_typed_params() { // Arrange var builder = pipelineService.PipelineContainer.AddCommandPipeline(); SetupCommandPipeline(builder); var cmd = new Ns12_SimpleTestGenericCommand <string, int> { Id = "99", Value = 99 }; // Act pipelineService.HandleCommand(cmd); // Assert Assert.Equal("99", cmd.Id); Assert.Equal(99, cmd.Value); Assert.Equal("result", cmd.Out); }
public void HandleTestCommand <T1, T2>(Ns12_SimpleTestGenericCommand <T1, T2> command) { command.Out = "result"; }