コード例 #1
0
        private void Setup()
        {
            queueManager = MockRepository.GenerateStub <IQueueManager>();
            queueManager.Stub(qm => qm.Queues).Return(new string[0]);
            queueManager.Stub(qm => qm.GetMessagesCurrentlySending()).Return(new PersistentMessageToSend[0]);
            queueManager.Stub(qm => qm.Endpoint).Return(new IPEndPoint(IPAddress.Loopback, 123));

            performanceMonitor = new TestablePerformanceMonitor(queueManager);
        }
コード例 #2
0
        private void Setup()
        {
            _queueManager = MockRepository.GenerateStub<IQueueManager>();
            _queueManager.Stub(qm => qm.Queues).Return(new string[0]);
            _queueManager.Stub(qm => qm.GetMessagesCurrentlySending()).Return(new PersistentMessageToSend[0]);
            _queueManager.Stub(qm => qm.Endpoint).Return("localhost");

            _performanceMonitor = new TestablePerformanceMonitor(_queueManager);
        }
コード例 #3
0
        private void Setup()
        {
            queueManager = MockRepository.GenerateStub<IQueueManager>();
            queueManager.Stub(qm => qm.Queues).Return(new string[0]);
            queueManager.Stub(qm => qm.GetMessagesCurrentlySending()).Return(new PersistentMessageToSend[0]);
            queueManager.Stub(qm => qm.Endpoint).Return(new IPEndPoint(IPAddress.Loopback, 123) );

            performanceMonitor = new TestablePerformanceMonitor(queueManager);
        }