LoggerFake.cs 553 B

123456789101112131415161718192021
  1. using Microsoft.Extensions.Logging;
  2. namespace Quadarax.Application.QLiberace.Base.Tests.Services.Fakes
  3. {
  4. public class LoggerFake : ILogger
  5. {
  6. public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
  7. {
  8. }
  9. public bool IsEnabled(LogLevel logLevel)
  10. {
  11. return false;
  12. }
  13. public IDisposable BeginScope<TState>(TState state)
  14. {
  15. return null!;
  16. }
  17. }
  18. }