示例#1
0
        public void Startup_logs_configured_information()
        {
            _sut.LogStart(_eventId, new TestKafkaConfig());

            var entry = _sut.LogEntries.Single(l => l.LogLevel == LogLevel.Information && l.EventId.Id == 1);

            Assert.Equal("broker:9090", entry.GetValue("BrokerUrls"));
            Assert.Equal("consumer", entry.GetValue("ConsumerGroupId"));
            Assert.Equal("topic", ((string[])entry.GetValue("Topics"))[0]);
        }