public void StopAllProjectsRemovesAllKnownQueueNames()
        {
            queueManager = new IntegrationQueueManager(new ProjectIntegratorListFactory(),
                                                       configuration,
                                                       (IProjectStateManager)stateManagerMock.MockInstance);
            string[] queueNames = queueManager.GetQueueNames();
            Assert.AreEqual(1, queueNames.Length);

            queueManager.StopAllProjects(false);

            queueNames = queueManager.GetQueueNames();
            Assert.AreEqual(0, queueNames.Length);
        }
 public void EmptyIntegrationQueueReportsNamesCorrectly()
 {
     queueManager = new IntegrationQueueManager(new ProjectIntegratorListFactory(),
                                                new Configuration(),
                                                (IProjectStateManager)stateManagerMock.MockInstance);
     string[] queueNames = queueManager.GetQueueNames();
     Assert.AreEqual(0, queueNames.Length);
 }
 public void QueueNamesShouldBePopulatedFromProjectList()
 {
     queueManager = new IntegrationQueueManager(new ProjectIntegratorListFactory(),
                                                configuration,
                                                (IProjectStateManager)stateManagerMock.MockInstance);
     string[] queueNames = queueManager.GetQueueNames();
     Assert.AreEqual(1, queueNames.Length);
     Assert.AreEqual(project.Name, queueNames[0]);
 }
        public void GetQueueNamesOrderedAlphabetically()
        {
            Project project2 = new Project();

            project2.Name = TestQueueName2;
            Project project3 = new Project();

            project3.Name = TestQueueName3;
            configuration.AddProject(project2);
            configuration.AddProject(project3);

            queueManager = new IntegrationQueueManager(new ProjectIntegratorListFactory(),
                                                       configuration,
                                                       (IProjectStateManager)stateManagerMock.MockInstance);
            string[] queueNames = queueManager.GetQueueNames();
            Assert.AreEqual(TestQueueName, queueNames[0]);
            Assert.AreEqual(TestQueueName3, queueNames[1]);
            Assert.AreEqual(TestQueueName2, queueNames[2]);
        }