Exemple #1
0
        public async Task Consumer_callback_exceptions_are_logged()
        {
            await _sut.StartAsync(Token);

            Mock.Get(_channel).Raise(c => c.CallbackException += null, new CallbackExceptionEventArgs(new ArgumentNullException()));

            Assert.Contains(_logger.LogEntries, e => e.EventId.Id == 204 && e.LogLevel == LogLevel.Warning);
        }
Exemple #2
0
 public async Task OnGet()
 {
     await _RabbitMqConsumerService.StartAsync();
 }