Table of Contents

Class ConfigPumpsServiceTest

Namespace
adas_core.Test.Services
Assembly
adas-core.Test.dll
[TestFixture]
public class ConfigPumpsServiceTest
Inheritance
ConfigPumpsServiceTest
Inherited Members
Extension Methods

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