Class RecordingAlertServiceTest
[TestFixture]
public class RecordingAlertServiceTest
- Inheritance
-
RecordingAlertServiceTest
- Inherited Members
- Extension Methods
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
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
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
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
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()