using e_suite.API.Common.repository; using e_suite.UnitTestCore; using MockQueryable; namespace e_suite.Modules.ExceptionLogManager.UnitTests.Repository; public class FakeExceptionLogManagerRepository : FakeRepository, IExceptionLogRepository { public List ExceptionLogs = []; public IQueryable GetExceptionLogs() { return ExceptionLogs.BuildMock(); } public Task LogException(Database.Core.Tables.Diagnostics.ExceptionLog exception, CancellationToken cancellationToken) { ExceptionLogs.Add(exception); return Task.FromResult(exception.Id); } }