public void A_Message_Is_Deleted_By_Id() { int numberOfMessages = 1; WriteManyToQueue(numberOfMessages); int queueDepth = _textQueueWrapper.GetQueueDepth(); Assert.That(queueDepth, Is.EqualTo(numberOfMessages)); List <ReceiveResponse <string> > responses = _textQueueWrapper.PeekAllMessages(5); ReceiveResponse <string> response = responses.First(); string id = response.Id; ReceiveResponse <string> receiveById = _textQueueWrapper.ReceiveById(id); Assert.That(receiveById.Id, Is.EqualTo(id)); queueDepth = _textQueueWrapper.GetQueueDepth(); Assert.That(queueDepth, Is.LessThan(numberOfMessages)); }