=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -34,6 +34,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// One-time setup that prepares the integration test environment for <see cref="PumpAlarmStateRepository"/>.
|
||||
/// Configures the API settings, drops and recreates the "pump_alarm_state" collection, instantiates the repository with its indexes, and seeds three initial alarm state records across two devices, verifying the seeded count.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=81c0015 body=321fe16 -->
|
||||
[OneTimeSetUp]
|
||||
public async Task Init()
|
||||
{
|
||||
@@ -96,6 +97,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>FindActiveAsync</c> returns the correct active alarm matching the specified device identifier, alarm type, and alarm code.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=6e7817c body=1072320 -->
|
||||
[Test]
|
||||
public async Task FindActiveAsync_ReturnsCorrectAlarm()
|
||||
{
|
||||
@@ -113,6 +115,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>FindActiveAsync</c> returns <c>null</c> when no active alarm matching the specified device, alarm type, and identifier exists.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=448af76 body=5d7c302 -->
|
||||
[Test]
|
||||
public async Task FindActiveAsync_ReturnsNull_WhenNotFound()
|
||||
{
|
||||
@@ -128,6 +131,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// when no existing alarm with the same device, type, and code is found, and that the inserted alarm
|
||||
/// can subsequently be retrieved via <c>FindActiveAsync</c>.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=df40b99 body=b502791 -->
|
||||
[Test]
|
||||
public async Task UpsertActiveAsync_InsertsNew()
|
||||
{
|
||||
@@ -179,6 +183,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>RemoveAsync</c> correctly deletes an active alarm by device, alarm type, and alarm code, and that a subsequent lookup returns no result.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7cec1b8 body=57f46a1 -->
|
||||
[Test]
|
||||
public async Task RemoveAsync_Works()
|
||||
{
|
||||
@@ -207,6 +212,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// Verifies that the repository's <c>DeleteByPatientId</c> method successfully removes a previously upserted
|
||||
/// <see cref="PumpAlarmState"/> for the specified patient, ensuring no matching records remain in the collection.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d53a759 body=f655df6 -->
|
||||
[Test]
|
||||
public async Task DeleteByPatientId_Works()
|
||||
{
|
||||
@@ -236,6 +242,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>FindAllActiveByDeviceAsync</c> returns only active pump alarm states that belong to the specified device.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5c3d431 body=6ed6d8e -->
|
||||
[Test]
|
||||
public async Task FindAllActiveByDeviceAsync_ReturnsCorrect()
|
||||
{
|
||||
@@ -254,6 +261,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// from the old ObjectId to a new ObjectId for matching documents, returning the expected count of
|
||||
/// updated records and making the document retrievable by the new ObjectId.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ed519f8 body=169b572 -->
|
||||
[Test]
|
||||
public async Task UpdateManyObjectIdByFieldNameAsync_Works()
|
||||
{
|
||||
@@ -312,6 +320,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that UpsertActiveAsync correctly inserts a PumpAlarmState record when the AlarmCodeMdc is null, and that the record can be retrieved via FindActiveAsync using a null alarm code.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=1cd185f body=08dbadd -->
|
||||
[Test]
|
||||
public async Task UpsertActiveAsync_InsertsWhenAlarmCodeIsNull()
|
||||
{
|
||||
@@ -336,6 +345,7 @@ public class PumpAlarmStateRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>RemoveAsync</c> removes every active alarm matching the specified device identifier and alarm type, not just a single record.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=e06229e body=5ac9fd3 -->
|
||||
[Test]
|
||||
public async Task RemoveAsync_RemovesAllMatching()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user