# Class DiagnosisServiceTest

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

    [TestFixture]
    public class DiagnosisServiceTest

Inheritance
  object
  DiagnosisServiceTest

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

### SaveRequest_Not_DiagnosisCodeSettings_Return_not_insert()

    [Test]
    public Task SaveRequest_Not_DiagnosisCodeSettings_Return_not_insert()

#### Returns

Task

### SaveRequest_Not_FindPatient_Return_not_insert()

Verifies that `SaveRequest` does not insert a diagnosis when the patient referenced by the ApiRequest cannot be found.

    [Test]
    public Task SaveRequest_Not_FindPatient_Return_not_insert()

#### Returns

Task

  A task representing the asynchronous test execution.

### SaveRequest_Not_Observations_Return_not_insert()

Verifies that `SaveRequest` does not insert a PatientDiagnosis when the provided ApiRequest is not considered an observation request, ensuring observations must be present to trigger a database insertion.

    [Test]
    public Task SaveRequest_Not_Observations_Return_not_insert()

#### Returns

Task

### Setup()

Initializes the mocked dependencies (patient, diagnosis, unit, audit, subscribers and calculated observations services along with their repositories) and constructs the DiagnosisService instance under test.

    [SetUp]
    public void Setup()