# Class ConfigUnitsRepositoryTest

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

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

Inheritance
  object
  ConfigUnitsRepositoryTest

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

### FindAsync_not_Find_id_Return_Empty_List()

Verifies that FindById(string) returns null when invoked with an identifier ("PV2") that does not exist in the repository.

    [Test]
    public Task FindAsync_not_Find_id_Return_Empty_List()

#### Returns

Task

### FindById_Find_id_Return_List()

Verifies that the repository's `FindById` method returns a non-null result when searching by the identifier "PV1".

    [Test]
    public Task FindById_Find_id_Return_List()

#### Returns

Task

### Init()

Performs one-time setup for integration tests by resetting the `config_units` collection and seeding it with a single ConfigUnits document (Id "PV1") containing two empty ConfigUnitItem entries, then initializes the ConfigUnitsRepository used by the tests.

    [OneTimeSetUp]
    public Task Init()

#### Returns

Task