using e_suite.API.Common.models;
using e_suite.API.Common.repository;
using e_suite.Database.Audit.Tables.Audit;
using MockQueryable;

namespace AuditLog.UnitTests.Repository;

public class FakeAuditLogRepository : IAuditLogRepository
{
    public List<AuditEntry> AuditEntries { get; set; } = [];
    
    public AuditParams? AuditParams { get; set; }

    public IQueryable<AuditEntry> GetAuditEntries(AuditParams? auditParams, bool primaryOnly)
    {
        AuditParams = auditParams;
        return AuditEntries.BuildMock();
    }
}