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); }
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); }
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); }