=== 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
@@ -22,6 +22,7 @@ public class DiagnosisRepositoryTest
/// <summary>
/// One-time test setup that prepares the integration database for patient diagnosis tests by dropping and recreating the diagnoses collection, inserting three sample <see cref="PatientDiagnosis"/> records (one with predefined test identifiers and two with auto-generated identifiers), and initializing the <see cref="DiagnosisRepository"/> under test.
/// </summary>
/// <!-- aidoc:v1 sig=81c0015 body=df3edc3 -->
[OneTimeSetUp]
public async Task Init()
{
@@ -81,6 +82,7 @@ public class DiagnosisRepositoryTest
/// <summary>
/// Verifies that the repository returns a non-null and non-empty collection when retrieving records for an existing patient.
/// </summary>
/// <!-- aidoc:v1 sig=b07f445 body=1ecc19f -->
[Test]
public async Task GetByPatient_Find_Patient_Return_List()
{
@@ -93,6 +95,7 @@ public class DiagnosisRepositoryTest
/// <summary>
/// Verifies that <see cref="DiagnosisRepository.GetByPatient"/> returns an empty list when no records are found for the specified patient identifier.
/// </summary>
/// <!-- aidoc:v1 sig=11046fe body=f92c1ae -->
[Test]
public async Task GetByPatient_not_Find_Patient_Return_Empty_List()
{
@@ -106,6 +109,7 @@ public class DiagnosisRepositoryTest
/// Verifies that <see cref="DiagnosisRepository.FindByPatientIdAndCode"/> successfully retrieves a diagnosis for an existing patient using the provided patient identifier, diagnosis code, and diagnosis system.
/// </summary>
/// <returns>A task that represents the asynchronous test execution.</returns>
/// <!-- aidoc:v1 sig=a4dcbd2 body=164b3c6 -->
[Test]
public async Task FindByPatientIdAndCode_Find_Patient_Return_Diagnois()
{
@@ -118,6 +122,7 @@ public class DiagnosisRepositoryTest
/// Verifies that <see cref="DiagnosisRepository.FindByPatientIdAndCode"/> returns <c>null</c> when no patient is found
/// for the provided patient identifier, code, and diagnosis system.
/// </summary>
/// <!-- aidoc:v1 sig=610fb3e body=fb08982 -->
[Test]
public async Task FindByPatientIdAndCode_not_Find_Patient_Return_null()
{
@@ -129,6 +134,7 @@ public class DiagnosisRepositoryTest
/// <summary>
/// Verifies that <see cref="DiagnosisRepository.FindByPatientIdAsync"/> returns a non-null, non-empty list when looking up an existing patient by their identifier.
/// </summary>
/// <!-- aidoc:v1 sig=93141f2 body=482ec71 -->
[Test]
public async Task FindByPatientIdAsync_Find_Patient_Return_List()
{
@@ -141,6 +147,7 @@ public class DiagnosisRepositoryTest
/// <summary>
/// Verifies that <c>FindByPatientIdAsync</c> returns a non-null empty list when no patient matches the provided patient ID.
/// </summary>
/// <!-- aidoc:v1 sig=364bbfc body=f65d98f -->
[Test]
public async Task FindByPatientIdAsync_not_Find_Patient_Return_Empty_List()
{
@@ -153,6 +160,7 @@ public class DiagnosisRepositoryTest
/// <summary>
/// Verifies that <c>DeleteAsync</c> removes a patient diagnosis record by its identifier: after insertion, the record is retrievable by patient id, and once deleted, the search by patient id returns no results.
/// </summary>
/// <!-- aidoc:v1 sig=11927cd body=c622103 -->
[Test]
public async Task DeleteAsync_Find_id()
{
@@ -181,6 +189,7 @@ public class DiagnosisRepositoryTest
/// by inserting a diagnosis, confirming it can be found, deleting it by patient id, and then
/// asserting that no diagnoses remain for that patient.
/// </summary>
/// <!-- aidoc:v1 sig=cecd641 body=81c52b1 -->
[Test]
public async Task DeleteByPatientId_Find_patientId()
{
@@ -208,6 +217,7 @@ public class DiagnosisRepositoryTest
/// Tests that <c>UpdateManyObjectId</c> correctly updates the <c>PatientId</c> field across all matching <see cref="PatientDiagnosis"/> documents by replacing the original ObjectId with a new one.
/// Verifies that after the update, the document can be retrieved using the new patient identifier.
/// </summary>
/// <!-- aidoc:v1 sig=7bfa39c body=54e7d90 -->
[Test]
public async Task UpdateManyObjectId_With_base_UpdateManyObjectIdAsync()
{