Files
adas-core/adas-core.Test/Repositories/DisplayRepisitoryTest.cs
T
2026-06-27 15:23:26 -07:00

26 lines
1.1 KiB
C#

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>
[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");
}
}