public void A_Text_Message_Is_Put_On_The_Queue() { string label = string.Empty; DeleteAllMessagesFromQueues(); int depth = _textQueueWrapper.GetQueueDepth(); Assert.That(depth, Is.EqualTo(0)); bool wasSent = _textQueueWrapper.Send("Payload", label); Assert.True(wasSent); depth = _textQueueWrapper.GetQueueDepth(); Assert.That(depth, Is.EqualTo(1)); }
public void An_Integer_Message_Is_Put_On_The_Queue() { const string label = "Number"; DeleteAllMessagesFromQueues(); int depth = _intQueueWrapper.GetQueueDepth(); Assert.That(depth, Is.EqualTo(0)); bool wasSent = _intQueueWrapper.Send(1234, label); Assert.True(wasSent); depth = _intQueueWrapper.GetQueueDepth(); Assert.That(depth, Is.EqualTo(1)); }