Ejemplo n.º 1
0
        public async Task NewlyCreatedTopicShouldRetryUntilBrokerIsAssigned()
        {
            var expectedTopic = Guid.NewGuid().ToString();
            var router        = new BrokerRouter(_options);
            var response      = router.GetMetadataAsync(new [] { expectedTopic }, CancellationToken.None);
            var topic         = (await response).Topics.FirstOrDefault();

            Assert.That(topic, Is.Not.Null);
            Assert.That(topic.TopicName, Is.EqualTo(expectedTopic));
            Assert.That(topic.ErrorCode, Is.EqualTo((int)ErrorResponseCode.None));
        }