Ejemplo n.º 1
0
        public async Task ExistsQueueAsync_Get()
        {
            PassiveMqQueuClient client = this.Account.CreateQueueClient("myTestQueue");

            try
            {
                await client.CrateIfNotExists();

                bool exists1 = await client.ExistsQueue();

                Assert.IsTrue(exists1);
                await client.DeleteIfExists();

                bool exists2 = await client.ExistsQueue();

                Assert.IsFalse(exists2);
            }
            finally
            {
                await client.DeleteIfExists();
            }
        }