using System;
using Microsoft.Extensions.Logging;

namespace NT8.Core.Tests.Mocks
{
    /// <summary>
    /// Simple mock implementation of ILogger for testing purposes
    /// </summary>
    public class MockLogger<T> : ILogger<T>
    {
        public IDisposable BeginScope<TState>(TState state)
        {
            return new MockDisposable();
        }

        public bool IsEnabled(LogLevel logLevel)
        {
            return true;
        }

        public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
        {
            // Mock implementation - do nothing
        }

        private class MockDisposable : IDisposable
        {
            public void Dispose()
            {
                // Mock implementation - do nothing
            }
        }
    }
}
