public void Can_get_multiple_messages_from_the_queue()
{
Client.GetResponse = (e) =>
{
return "{ 'messages': [ { 'id': 1, 'body':'{\"Text\":\"hello\"}', 'timeout': 600 }, { 'id': 2, 'body':'{\"Text\":\"hello again\"}', 'timeout': 600 } ] }";
};
var messages = Client.Queue<Stub>().Get(2).ToList();
messages.Count().Should().Be(2);
messages.ForEach(r => r.OnError(ex => ex.Should().BeNull())
.Consume((m, ctx) => m.Target.Text.Should().NotBeEmpty()));
}