Example #1
0
        public async Task handle_multiple_return_values()
        {
            var input = new Incoming2();

            var context = await Execute(input);

            var outgoing = context.OutgoingMessages().ToArray();

            outgoing.OfType <Output1>().Single().Id.ShouldBe(input.Id);
        }
Example #2
0
 public object[] Handle(Incoming2 input)
 {
     return(new object[]
     {
         new Output2 {
             Id = input.Id
         },
         new Output3 {
             Id = input.Id
         },
         new Output4 {
             Id = input.Id
         }
     });
 }