=== 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:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -25,6 +25,7 @@ public class AdmissionRepositoryTest
/// Initializes the integration test environment by resetting the admissions collection
/// and seeding it with valid admission records to be used across the test fixture.
/// </summary>
/// <!-- aidoc:v1 sig=81c0015 body=3f12caf -->
[OneTimeSetUp]
public async Task Init()
{
@@ -57,6 +58,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <see cref="AdmissionRepository.InsertOneAsync"/> successfully persists a valid admission so that it can subsequently be retrieved by its identifier.
/// </summary>
/// <!-- aidoc:v1 sig=6ca2d2e body=b9057c2 -->
[Test]
public async Task InsertOneAsync_Success()
{
@@ -76,6 +78,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that the repository successfully deletes an admission record, ensuring that the deleted admission can no longer be retrieved by its identifier.
/// </summary>
/// <!-- aidoc:v1 sig=0c937b9 body=c7bb396 -->
[Test]
public async Task Delete_Success()
{
@@ -94,6 +97,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <see cref="Admission"/> updates are persisted successfully by inserting an admission, modifying one of its fields, and asserting that the updated value is retrieved.
/// </summary>
/// <!-- aidoc:v1 sig=cadac73 body=ac0859e -->
[Test]
public async Task Update_Success()
{
@@ -118,6 +122,7 @@ public class AdmissionRepositoryTest
/// <c>PointOfCareId</c> of an existing admission to the specified new location identifier
/// and that the change is persisted in the repository.
/// </summary>
/// <!-- aidoc:v1 sig=25ab00f body=a9cfae4 -->
[Test]
public async Task UpdateLocation_Success()
{
@@ -142,6 +147,7 @@ public class AdmissionRepositoryTest
/// Verifies that the repository successfully updates the patient information of an existing admission,
/// ensuring the updated admission can be retrieved and reflects the new patient's details.
/// </summary>
/// <!-- aidoc:v1 sig=cc5dc00 body=d8a50b1 -->
[Test]
public async Task UpdatePatient_Success()
{
@@ -170,6 +176,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that the repository's FindAll operation successfully retrieves all admissions, returning a non-empty collection of exactly three records.
/// </summary>
/// <!-- aidoc:v1 sig=9b3759c body=0845192 -->
[Test]
public async Task FindAll_Success()
{
@@ -189,6 +196,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that the repository successfully retrieves an admission by its unique identifier after it has been inserted.
/// </summary>
/// <!-- aidoc:v1 sig=2d082b2 body=9d58a46 -->
[Test]
public async Task FindById_Success()
{
@@ -207,6 +215,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that the repository's <c>FindById</c> method returns <c>null</c> when queried with a non-existing identifier.
/// </summary>
/// <!-- aidoc:v1 sig=464d0a4 body=1ff6d58 -->
[Test]
public async Task FindById_NotFound()
{
@@ -224,6 +233,7 @@ public class AdmissionRepositoryTest
/// Verifies that <see cref="AdmissionRepository.FindByNhc"/> successfully retrieves an admission record from the repository using its NHC identifier.
/// Confirms that the returned record is not null and that the NHC of the retrieved admission matches the one used in the lookup.
/// </summary>
/// <!-- aidoc:v1 sig=313e6e8 body=dd6590c -->
[Test]
public async Task FindByNhc_Success()
{
@@ -242,6 +252,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <see cref="AdmissionRepository"/>.<c>FindByNhc</c> returns <c>null</c> when the provided NHC does not exist in the data source.
/// </summary>
/// <!-- aidoc:v1 sig=f2a806f body=99d3860 -->
[Test]
public async Task FindByNhc_NotFound()
{
@@ -319,6 +330,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that inserting a valid admission through the repository returns the same admission and persists it so it can be retrieved by its identifier.
/// </summary>
/// <!-- aidoc:v1 sig=5e423f0 body=ff7f179 -->
[Test]
public async Task InsertOneAsyncAndReturn_Success()
{
@@ -341,6 +353,7 @@ public class AdmissionRepositoryTest
/// Tests that the repository's <c>GetAdmissionByUnitIdWithOutPoC</c> method returns only the admissions matching the specified unit identifier
/// while excluding admissions that have an associated point-of-care identifier.
/// </summary>
/// <!-- aidoc:v1 sig=5759221 body=88f5048 -->
[Test]
public async Task GetAdmissionByUnitIdWithOutPoC_Success()
{
@@ -370,6 +383,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <c>GetAdmissionByUnitIdWithOutPoC</c> returns an empty result set (instead of null) when no admissions match the provided unit identifier.
/// </summary>
/// <!-- aidoc:v1 sig=2150f4c body=a2de31a -->
[Test]
public async Task GetAdmissionByUnitIdWithOutPoC_NoMatch()
{
@@ -387,6 +401,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that the repository's <c>FindByPointOfCareId</c> method successfully retrieves the admission matching the specified point of care identifier, returning a single result and excluding admissions associated with different point of care identifiers.
/// </summary>
/// <!-- aidoc:v1 sig=88efc70 body=b058bc3 -->
[Test]
public async Task FindByPointOfCareId_Success()
{
@@ -410,6 +425,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <see cref="AdmissionRepository"/>.FindByPointOfCareId returns a non-null empty collection when no point of care matches the provided identifier.
/// </summary>
/// <!-- aidoc:v1 sig=10c01cc body=b5fceef -->
[Test]
public async Task FindByPointOfCareId_NoMatch()
{
@@ -424,6 +440,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <see cref="AdmissionRepository"/>.<c>FindByDiagnosis</c> successfully returns a non-null result when retrieving admissions matching the specified diagnosis value.
/// </summary>
/// <!-- aidoc:v1 sig=070caef body=da3bf67 -->
[Test]
public async Task FindByDiagnosis_Success()
{
@@ -445,6 +462,7 @@ public class AdmissionRepositoryTest
/// <summary>
/// Verifies that <see cref="AdmissionRepository"/>.<c>FindByDiagnosis</c> returns an empty collection when no entity matches the provided diagnosis.
/// </summary>
/// <!-- aidoc:v1 sig=2b70ce2 body=fefa57f -->
[Test]
public async Task FindByDiagnosis_NoMatch()
{