# Class RecordingAlertServiceTest

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

    [TestFixture]
    public class RecordingAlertServiceTest

Inheritance
  object
  RecordingAlertServiceTest

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

Verifies that SaveRequest inserts a new PatientRecordingAlert into the repository when the configuration observation service returns no retention actions for the given recording alert.

    [Test]
    public Task SaveRequest_Alert_Return_insert()

#### Returns

Task

### SaveRequest_Not_Find_Patient_Return_not_insert()

Verifies that the SaveRequest method does not insert a patient recording alert when the specified patient cannot be found.

    [Test]
    public Task SaveRequest_Not_Find_Patient_Return_not_insert()

#### Returns

Task

### SaveRequest_Not_RecordingAlert_Not_ORU_R01_Return_not_insert()

Verifies that SaveRequest(ApiRequest) does not persist a PatientRecordingAlert when the provided ApiRequest is neither a recording alert nor an ORU R01 message.

    [Test]
    public Task SaveRequest_Not_RecordingAlert_Not_ORU_R01_Return_not_insert()

#### Returns

Task

### SaveRequest_patientNumber_and_pointOfCare_null_Return_not_insert()

Verifies that SaveRequest(ApiRequest) does not insert a PatientRecordingAlert when both the patient number and point of care are null in the ApiRequest, even when the message type is "ORU_R11".

    [Test]
    public Task SaveRequest_patientNumber_and_pointOfCare_null_Return_not_insert()

#### Returns

Task

### Setup()

Initializes the mocked dependencies and test infrastructure required by the RecordingAlertService unit tests, including service and repository mocks, a fake HTTP context with a "TestUser" claim, and the system-under-test instance.

    [SetUp]
    public void Setup()