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); }
public object[] Handle(Incoming2 input) { return(new object[] { new Output2 { Id = input.Id }, new Output3 { Id = input.Id }, new Output4 { Id = input.Id } }); }