public void TestCase()
        {
            String cola = "TEST_PEDIDO";
            Rest   rest = new Rest();

            String[] listaPedidos = rest.obtener(new Configuracion().urlNimbus(),
                                                 new Configuracion().restPedidoURL());
            ConsumirPedido consumirPedido = new ConsumirPedido();

            consumirPedido.Launcher(cola, new Configuracion().restPedidoURL());

            int i = 0;
            ConectorActiveMQ camq = new ConectorActiveMQ();

            while (camq.hayNuevo(cola) != null)
            {
                i++;
            }
            Assert.AreEqual(listaPedidos.Length, i);
        }
Beispiel #2
0
        public void TestCase()
        {
            Configuracion configuracion       = new Configuracion();
            string        urlNimbus           = configuracion.urlNimbus();
            string        itemsAObtenerNimbus = configuracion.itemsNimbus();

            InsertarClienteEnCola insertarClienteEnCola = new InsertarClienteEnCola();

            insertarClienteEnCola.Launcher("TEST", urlNimbus, itemsAObtenerNimbus);

            Rest rest = new Rest();

            String[]         listaClientes    = rest.obtener(urlNimbus, itemsAObtenerNimbus);
            ConectorActiveMQ conectorActiveMQ = new ConectorActiveMQ();

            foreach (string cliente in listaClientes)
            {
                Assert.AreEqual(cliente, conectorActiveMQ.hayNuevo("TEST"));
            }
        }