public void SimpleBridge() { var outputChannel = new QueueChannel(provider.GetService <IApplicationContext>()); handler.OutputChannel = outputChannel; var request = Message.Create("test"); handler.HandleMessage(request); var reply = outputChannel.Receive(0); Assert.NotNull(reply); Assert.Equal(request.Payload, reply.Payload); Assert.Equal(request.Headers, reply.Headers); }
public void SimpleBridge() { var outputChannel = new QueueChannel(provider); handler.OutputChannel = outputChannel; var request = new GenericMessage("test"); handler.HandleMessage(request); var reply = outputChannel.Receive(0); Assert.NotNull(reply); Assert.Equal(request.Payload, reply.Payload); Assert.Equal(request.Headers, reply.Headers); }