public void Can_peek_into_queue()
{
var endpoint = string.Empty;
Client.GetResponse = (e) =>
{
endpoint = e;
return "{ 'messages': [ { 'id': 1, 'body':'{\"Text\":\"hello\"}', 'timeout': 600 }, { 'id': 2, 'body':'{\"Text\":\"hello again\"}', 'timeout': 600 } ] }";
};
var result = Client.Queue<Stub>().Peek(2);
result.Count().Should().Be(2);
endpoint.Should().Be("queues/Blacksmith.Tests.ClientTests+Stub/messages/peek?n=2");
}