# Class ConfigPumpsServiceTest

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

    [TestFixture]
    public class ConfigPumpsServiceTest

Inheritance
  object
  ConfigPumpsServiceTest

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

### Map_Not_uiConfiguration_Return_same_pump()

Verifies that the Map(PumpObservation) method returns the original PumpObservation unchanged when the configuration pump item is empty, ensuring that no `UiConfiguration` is assigned in that case.

    [Test]
    public Task Map_Not_uiConfiguration_Return_same_pump()

#### Returns

Task

### Map_configPumpsRequired_false_Return_same_pump()

Verifies that the Map(PumpObservation) method returns the same PumpObservation instance unchanged when the `ConfigPumpsRequired` option is set to `false`, bypassing any pump configuration lookup or transformation.

    [Test]
    public Task Map_configPumpsRequired_false_Return_same_pump()

#### Returns

Task

### Map_not_alarmType_Return_same_pump()

Verifies that when pump configuration is required and the pump has no alarm type, the `Map` method returns the same pump instance unchanged.

    [Test]
    public Task Map_not_alarmType_Return_same_pump()

#### Returns

Task

### Map_uiConfiguration_Return_pump_uiConfiguration()

Verifies that mapping a PumpObservation returns the expected pump UI configuration when a matching ConfigPumpItem is found for the pump's alarm type, ensuring the resulting UI configuration contains the expected label entries such as the "screenAlarmLabel" mapped to the alarm type.

    [Test]
    public Task Map_uiConfiguration_Return_pump_uiConfiguration()

#### Returns

Task

### Setup()

Initializes the test environment by creating mock dependencies and instantiating the ConfigPumpsService under test.

    [SetUp]
    public void Setup()