namespace adas_core.Test.Repositories;

/// <summary>
/// Provides a test fixture for the display repository, containing test methods to verify its behavior.
/// Marked with <see cref="TestFixtureAttribute"/> to be recognized as an NUnit test fixture.
/// </summary>
/// <!-- aidoc:v1 sig=9ea7e41 -->
[TestFixture]
public class DisplayRepisitoryTest
{
    //private Mock<ILogger<DisplayRepository>> _mockLogger ;
    //private Mock<IOptions<ApiSettings>> _mockOptionsApiSettings ;

    /// <summary>
    /// One-time setup method that resets the "displays" collection in the integration database by dropping and recreating it, ensuring a clean state before integration tests run.
    /// </summary>
    /// <!-- aidoc:v1 sig=f7b1b92 body=1664d64 -->
    [OneTimeSetUp]
        public async Task OneTimeSetUp()
        {
            //_mockLogger = new Mock<ILogger<DisplayRepository>>();
            //_mockOptionsApiSettings = new Mock<IOptions<ApiSettings>>();
    
            await IntegrationDb.Database.DropCollectionAsync("displays");
            await IntegrationDb.Database.CreateCollectionAsync("displays");
        }
}