=== 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
@@ -24,6 +24,7 @@ public class DiagnosisServiceTest
/// <summary>
/// Initializes the mocked dependencies (patient, diagnosis, unit, audit, subscribers and calculated observations services along with their repositories) and constructs the <see cref="DiagnosisService"/> instance under test.
/// </summary>
/// <!-- aidoc:v1 sig=dee8bf2 body=00b1d4d -->
[SetUp]
public void Setup()
{
@@ -148,6 +149,7 @@ public class DiagnosisServiceTest
/// Verifies that <c>SaveRequest</c> does not insert a diagnosis when the patient referenced by the <see cref="ApiRequest"/> cannot be found.
/// </summary>
/// <returns>A task representing the asynchronous test execution.</returns>
/// <!-- aidoc:v1 sig=8c3ffda body=ba42756 -->
[Test]
public async Task SaveRequest_Not_FindPatient_Return_not_insert()
{
@@ -172,6 +174,12 @@ public class DiagnosisServiceTest
/// </summary>
/// <param name="apiRequest">The API request containing the patient and observation data being evaluated.</param>
/// <param name="null">Reserved parameter passed to <c>SaveRequest</c> as a null value.</param>
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
/// "The summary states SaveRequest is invoked when the ApiRequest is 'not considered an observation request', but the test setup explicitly populates ObservationData (Code, CodingSystem, Value, Text, Time)." -->
/// <!-- aidoc-review:v1 severity=high kind=stale_summary
/// "The summary claims 'observations must be present to trigger a database insertion', yet the test contains a fully populated ObservationData and still expects InsertOneAsync to never be called." -->
/// <!-- aidoc-review:v1 severity=high kind=extra_param
/// "The test method takes no parameters, but the documentation declares <param name='apiRequest'> and <param name='null'>, describing arguments passed to SaveRequest rather than test parameters." -->
[Test]
public async Task SaveRequest_Not_Observations_Return_not_insert()
{