using e_suite.API.Common;
using e_suite.UnitTestCore;
using SequenceManager.UnitTests.Repository;
using e_suite.Database.Audit;

namespace SequenceManager.UnitTests.Helpers;

public class SequenceManagerTestBase : TestBase
{
    protected FakeSequenceManagerRepository SequenceManagerRepository = null!;

    protected AuditUserDetails AuditUserDetails = null!;

    protected ISequenceManager SequenceManager = null!;

    public override async Task Setup()
    {
        await base.Setup();

        AuditUserDetails = new AuditUserDetails
        {
            UserId = -1,
            UserDisplayName = "Testing User",
            Comment = "Test comment"
        };

        SequenceManagerRepository = new FakeSequenceManagerRepository();

        SequenceManager = new e_suite.Modules.SequenceManager.SequenceManager(SequenceManagerRepository, _fakeClock);
    }
}