public async Task SubscriptionDoesntExist()
        {
            var random    = new Random();
            var topicName = string.Format("a{0}b", random.Next());
            var subName   = "sub";
            var client    = new BusManagementClient(connection);

            var exists = await client.SubscriptionExists(topicName, subName);

            Assert.IsFalse(exists);
        }
        public async Task CreateSubscription()
        {
            var random    = new Random();
            var topicName = string.Format("a{0}b", random.Next());
            var subName   = "sub";

            var client = new BusManagementClient(connection);
            await client.TopicCreate(topicName);

            await client.SubscriptionCreate(topicName, subName);

            var exists = await client.SubscriptionExists(topicName, subName);

            Assert.IsTrue(exists);

            //cleanup
            await client.TopicDelete(topicName);
        }