public void FirstProjectOnQueueShouldIntegrateImmediately() { queueNotifier1Mock.Setup(notifier => notifier.NotifyEnteringIntegrationQueue()).Verifiable(); integrationQueueUseFirst.Enqueue(integrationQueueItem1); string[] queueNames = integrationQueues.GetQueueNames(); Assert.AreEqual(4, queueNames.Length); Assert.AreEqual(TestQueueName, queueNames[0]); IIntegrationQueueItem[] itemsOnQueue = integrationQueueUseFirst.GetQueuedIntegrations(); Assert.AreEqual(1, itemsOnQueue.Length); Assert.AreSame(integrationQueueItem1, itemsOnQueue[0]); VerifyAll(); queueNotifier1Mock.VerifyNoOtherCalls(); }
public void FirstProjectOnQueueShouldIntegrateImmediately() { queueNotifier1Mock.Expect("NotifyEnteringIntegrationQueue"); queueNotifier1Mock.ExpectNoCall("NotifyExitingIntegrationQueue", typeof(bool)); integrationQueueUseFirst.Enqueue(integrationQueueItem1); string[] queueNames = integrationQueues.GetQueueNames(); Assert.AreEqual(4, queueNames.Length); Assert.AreEqual(TestQueueName, queueNames[0]); IIntegrationQueueItem[] itemsOnQueue = integrationQueueUseFirst.GetQueuedIntegrations(); Assert.AreEqual(1, itemsOnQueue.Length); Assert.AreSame(integrationQueueItem1, itemsOnQueue[0]); VerifyAll(); }
/// <summary> /// Returns an array of the current queue names in usage. /// </summary> /// <returns>Array of current queue names in use.</returns> public string[] GetQueueNames() { return(integrationQueues.GetQueueNames()); }