public void EmptyTopicMetadataShouldThrowException()
        {
            var routerProxy = new BrokerRouterProxy(_kernel);
            var router      = routerProxy.Create();
            var common      = new MetadataQueries(router);

            common.GetTopicFromCache("MissingTopic");
        }
        public async Task GetTopicShouldReturnTopic()
        {
            var routerProxy = new BrokerRouterProxy(_kernel);
            var router      = routerProxy.Create();
            await router.RefreshMissingTopicMetadata(BrokerRouterProxy.TestTopic);

            var common = new MetadataQueries(router);

            var result = common.GetTopicFromCache(BrokerRouterProxy.TestTopic);

            Assert.That(result.Name, Is.EqualTo(BrokerRouterProxy.TestTopic));
        }