public IList <Queue> GetQueues(string machineName = null)
        {
            if (machineName == null)
            {
                machineName = Environment.MachineName;
            }

            return(_queueOperations.GetQueues(machineName));
        }
        public void TestInitialize()
        {
            QueueList = new List<Queue>(new[] { new Queue("localhost", "queue"), new Queue("localhost", "test") });
            Messages = new List<MessageInfo>(new[] { new MessageInfo(), new MessageInfo() });

            QueueOperations = Substitute.For<IQueueOperations>();
            QueueOperations.GetQueues(Arg.Any<string>()).Returns(QueueList);
            QueueOperations.GetMessages(Arg.Any<Queue>()).Returns(Messages);

            QueueManager = new QueueManager(QueueOperations);
        }
Beispiel #3
0
        public void TestInitialize()
        {
            QueueList = new List <Queue>(new[] { new Queue("localhost", "queue"), new Queue("localhost", "test") });
            Messages  = new List <MessageInfo>(new[] { new MessageInfo(), new MessageInfo() });

            QueueOperations = Substitute.For <IQueueOperations>();
            QueueOperations.GetQueues(Arg.Any <string>()).Returns(QueueList);
            QueueOperations.GetMessages(Arg.Any <Queue>()).Returns(Messages);

            QueueManager = new QueueManager(QueueOperations);
        }