# Class HistoricalConfigChangesRepositoryTest

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

    [TestFixture]
    [Category("Integration")]
    public class HistoricalConfigChangesRepositoryTest

Inheritance
  object
  HistoricalConfigChangesRepositoryTest

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## 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

Task

### 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

Task

### 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

Task

### 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

Task

### 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

Task

### 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()