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); }
public async Task OnGet() { await _RabbitMqConsumerService.StartAsync(); }