# Class ObservationServiceTest

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

    [TestFixture]
    public class ObservationServiceTest

Inheritance
  object
  ObservationServiceTest

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

### ProcessAllergiesObservation__apiRequest_No_Allergies_Return_Nothing()

    [Test]
    public Task ProcessAllergiesObservation__apiRequest_No_Allergies_Return_Nothing()

#### Returns

Task

### ProcessAllergiesObservation_apiRequest_Allergies_Latex_Return_AllergiesObs_Latex()

    [Test]
    public Task ProcessAllergiesObservation_apiRequest_Allergies_Latex_Return_AllergiesObs_Latex()

#### Returns

Task

### ProcessAllergiesObservation_apiRequest_Allergies_Return_AllergiesObs()

    [Test]
    public Task ProcessAllergiesObservation_apiRequest_Allergies_Return_AllergiesObs()

#### Returns

Task

### ProcessDrainagesObservation_apiRequest_Drainages_Return_DrainagesObs()

    [Test]
    public Task ProcessDrainagesObservation_apiRequest_Drainages_Return_DrainagesObs()

#### Returns

Task

### ProcessIntravenousLinesObservation_Return_PositionObs()

    [Test]
    public Task ProcessIntravenousLinesObservation_Return_PositionObs()

#### Returns

Task

### ProcessIsolationObservation_Return_IsolationObs()

Verifies that when an isolation observation is processed through SaveRequest, the configuration observation and units mapping services are invoked, and the resulting mapped observation is inserted into the observation repository with the expected value, patient identifier, name, time, message time, and coding system.

    [Test]
    public Task ProcessIsolationObservation_Return_IsolationObs()

#### Returns

Task

### ProcessPositionObservation_Return_PositionObs()

Verifies that processing a position observation through the observation service persists a new PatientObservation with the expected values (Value, PatientId, Name, Time, MessageTime, and CodingSystem) when a valid API request is provided.

    [Test]
    public Task ProcessPositionObservation_Return_PositionObs()

#### Returns

Task

### Setup()

Initializes the test fixture for the ObservationService by creating and configuring all required dependency mocks, instantiating the service under test with the mocked collaborators, and pre-configuring common lookup behavior for the default "UCI5C" unit (including `FindByName` and `FindById`) along with the `ICalculatedObservationsService.Map` passthrough.

    [SetUp]
    public void Setup()