Exemplo n.º 1
0
        public void Can_run_default_simple_generic_command()
        {
            // Arrange
            SetupEventPipeline(pipelinesService.PipelineContainer.AddEventPipeline());

            // Act
            var ev = new Ns04_SimpleGenericEvent <string>
            {
                Id = "GameOfThrones"
            };

            pipelinesService.RaiseEvent(ev);

            // Assert
            Assert.Equal("GameOfThrones", ev.Id);
            Assert.Equal("11", ev.Out);
        }
Exemplo n.º 2
0
 public void HandleTestEvent2 <T>(Ns04_SimpleGenericEvent <T> command)
 {
     command.Out += "1";
 }