Class HistoricalConfigChangesRepositoryTest
- Namespace
- adas_core.Test.Repositories
- Assembly
- adas-core.Test.dll
[TestFixture]
[Category("Integration")]
public class HistoricalConfigChangesRepositoryTest
- Inheritance
-
HistoricalConfigChangesRepositoryTest
- Inherited Members
- Extension Methods
Methods
Cleanup()
Resets the integration test environment by dropping and recreating the historicalConfigChanges collection and then reinitializing the test data. Used as a teardown step to ensure a clean state between tests.
[TearDown]
public Task Cleanup()
Returns
Delete_HistoricalConfigChanges_returns_count_2()
Verifies that deleting a historical config change entry reduces the total count of records from three to two in the repository.
[Test]
public Task Delete_HistoricalConfigChanges_returns_count_2()
Returns
FindLastHistoricalConfigChangesByUser_returns_3()
Verifies that adas_core.Test.Repositories.HistoricalConfigChangesRepositoryTest._repository.FindLastHistoricalConfigChangesByUser returns exactly three historical configuration changes for the user "adas" after cleanup.
[Test]
public Task FindLastHistoricalConfigChangesByUser_returns_3()
Returns
Get_HistoricalConfigChanges_returns_count_3()
Verifies that the repository's FindAll method returns a non-null collection containing exactly three historical configuration change records after a cleanup operation.
[Test]
public Task Get_HistoricalConfigChanges_returns_count_3()
Returns
HistoricalConfigChanges_returns_diferent_document()
Verifies that the repository Update operation for a HistoricalConfigChanges document returns a non-null result whose properties correspond to the updated record, after cleaning up existing data and retrieving an existing entry to be modified.
[Test]
public Task HistoricalConfigChanges_returns_diferent_document()
Returns
Init()
Performs one-time setup for the test fixture by initializing configuration options, a mocked logger, and the HistoricalConfigChangesRepository instance used across the tests.
[OneTimeSetUp]
public void Init()