Class SchedulerServiceTest
[TestFixture]
public class SchedulerServiceTest
- Inheritance
-
SchedulerServiceTest
- Inherited Members
- Extension Methods
Methods
CalculateNewsJob_Insert_ObsFull_MultiplePatient_With_Correct_Value()
Verifies that Execute(IJobExecutionContext) correctly inserts NEWS observations with the expected calculated values (1 and 4) for multiple patients in a single execution.
[Test]
public Task CalculateNewsJob_Insert_ObsFull_MultiplePatient_With_Correct_Value()
Returns
CheckActiveTreatmentsJob_ShouldExecuteOnTrigger()
Verifies that the CheckActiveTreatmentsJob is executed by the Quartz scheduler when triggered, and that the medicine service is invoked exactly once to retrieve medicines for the active treatments of the mocked patients.
[Test]
public void CheckActiveTreatmentsJob_ShouldExecuteOnTrigger()
CheckCalculateNewsJob_ShouldExecuteOnTrigger()
Verifies that the CalculateNewsJob is executed when triggered by the Quartz.NET scheduler, confirming that the associated InsertObservation call on the observation service is invoked at least once within the allowed execution window.
[Test]
public void CheckCalculateNewsJob_ShouldExecuteOnTrigger()
CheckExpiredAlertsJob_ShouldExecuteOnTrigger()
Verifies that the CheckExpiredAlertsJob is executed when triggered by the Quartz.NET scheduler, ensuring that the ExpireAlertsAndPowerOffAsync method on the observation service is invoked at least once.
[Test]
public void CheckExpiredAlertsJob_ShouldExecuteOnTrigger()
CheckExpiredObservationsJob_ShouldExecuteOnTrigger()
Verifies that the CheckExpiredObservationsJob is executed at least once by the Quartz.NET scheduler when triggered with a recurring schedule.
[Test]
public void CheckExpiredObservationsJob_ShouldExecuteOnTrigger()
CheckInactivePatientsJob_ShouldExecuteOnTrigger()
Verifies that the CheckInactivePatientsJob is executed when its Quartz.NET trigger fires, ensuring the scheduled job invokes the patient discharge process for inactive patients at the configured interval.
[Test]
public void CheckInactivePatientsJob_ShouldExecuteOnTrigger()
GetProvidersObservationsJob_ShouldExecuteOnTrigger_Result_GetType_null()
Verifies that the GetProvidersObservationsJob Quartz.NET job, when triggered, never invokes
InsertObservation with a PatientObservation whose Name is not "NEWS", ensuring
that only NEWS observations are considered for persistence during scheduled execution.
[Test]
public void GetProvidersObservationsJob_ShouldExecuteOnTrigger_Result_GetType_null()
SetUp()
[OneTimeSetUp]
public Task SetUp()
Returns
TearDown()
[OneTimeTearDown]
public void TearDown()