public void BecauseOf() { var putMessageOptions = new PutMessageOptions {VisibilityTimeout = TimeSpan.FromSeconds(2)}; _azureQueueService.PutMessage(_queueUri, _expectedMessage, putMessageOptions); _actualMessage = _azureQueueService.GetMessageWithDefaultTimeout(_queueUri); _messageFoundAfterFirstCall = _actualMessage == null; Thread.Sleep(4000); _actualMessage = _azureQueueService.GetMessageWithDefaultTimeout(_queueUri); }
public void BecauseOf() { var putMessageOptions = new PutMessageOptions {TimeToLive = TimeSpan.FromSeconds(1)}; _azureQueueService.PutMessage(_queueUri, _expectedMessage, putMessageOptions); Thread.Sleep(2000); _actualMessage = _azureQueueService.GetMessageWithDefaultTimeout(_queueUri); }