public void QueueStringMessageSucceeds() { const string stringMessage = "string message"; queueStorage.EnQueue(stringMessage); var message = queueStorage.Peek(); Assert.NotNull(message); }
private void OnExtensionFrame(ExtensionFrame frame) { if (frame.Payload is DotNetType) { _inboundDotNetType = ((DotNetType)frame.Payload).CreateType(); } if (frame.ExtensionId == _ackExtensionId) { var ackCount = _ackReceiver.Confirm((AckFrame)frame); if (_messageStore != null) { _messageStore.Remove(ackCount); var msgsToSend = new List <object>(); _messageStore.Peek(msgsToSend, _ackReceiver.FreeSlots); foreach (var o in msgsToSend) { //TODO: We should really send a list so that SendMore() can be sued _ackReceiver.Send((MessageFrame)o); } } if (AckReceived != null) { AckReceived((AckFrame)frame); } } }