public void Can_touch_a_message_from_within_consuming()
{
var endpoint = string.Empty;
Client.GetResponse = (e) => "{ 'messages': [ { 'id': 1, 'body':'{\"Text\":\"hello\"}', 'timeout': 600 } ] }";
Client.PostResponse = (e, b) =>
{
endpoint = e;
return "{ 'msg' : 'Touched' }";
};
Client.Queue<Stub>()
.Next()
.Consume((m, ctx) => ctx.Touch());
endpoint.Should().Be("queues/Blacksmith.Tests.ClientTests+Stub/messages/1/touch");
}