=== 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
@@ -46,6 +46,7 @@ public class DisplayServiceTest
/// Initializes mocked dependencies and configuration required to construct a <see cref="DisplayService"/> instance for unit tests.
/// Sets up the HTTP context with a test user claim, creates default cache settings, and wires all collaborators (repositories, services, logger, permissions) into the service under test.
/// </summary>
/// <!-- aidoc:v1 sig=d8eb19f body=d0144e9 -->
[SetUp]
public void SetUp()
{
@@ -93,6 +94,7 @@ public class DisplayServiceTest
/// <summary>
/// Verifies that <see cref="DisplayService.InsertOne"/> inserts a display by resolving the default configuration for its type and persisting it through the repository's insert method.
/// </summary>
/// <!-- aidoc:v1 sig=8846ed1 body=36d74d2 -->
[Test]
public async Task InsertOne_ShouldInsertDisplay()
{
@@ -121,6 +123,7 @@ public class DisplayServiceTest
/// <summary>
/// Verifies that the <see cref="DisplayService"/> returns the expected <see cref="Display"/> instance when a matching id is provided through the repository.
/// </summary>
/// <!-- aidoc:v1 sig=a7045b7 body=3124a14 -->
[Test]
public async Task GetById_ShouldReturnDisplay()
{
@@ -140,6 +143,7 @@ public class DisplayServiceTest
/// <summary>
/// Verifies that _displayService.GetAllByUser returns an empty collection when the user name is null.
/// </summary>
/// <!-- aidoc:v1 sig=67b03d0 body=cceeae1 -->
[Test]
public async Task GetAllByUser_ShouldReturnEmpty_WhenUserNameNull()
{
@@ -238,6 +242,7 @@ public class DisplayServiceTest
/// from the display repository, ensuring the service correctly resolves configurations and
/// their linked displays for the given display type.
/// </summary>
/// <!-- aidoc:v1 sig=5eccacf body=8683226 -->
[Test]
public async Task GetByType_ShouldReturnDisplays()
{
@@ -261,6 +266,7 @@ public class DisplayServiceTest
/// Verifies that <see cref="DisplayService.GetByType"/> returns an empty collection when no display configurations are found for the specified display type.
/// </summary>
/// <returns>A task that completes when the assertion confirming the empty result has been executed.</returns>
/// <!-- aidoc:v1 sig=b325f8a body=dccb49c -->
[Test]
public async Task GetByType_ShouldReturnEmpty_WhenNoConfigsFound()
{
@@ -280,6 +286,8 @@ public class DisplayServiceTest
/// </summary>
/// <param name="poc">The point of care used to look up associated displays.</param>
/// <returns>A task representing the asynchronous test execution.</returns>
/// <!-- aidoc-review:v1 severity=medium kind=extra_param
/// "The <param name=\"poc\"> tag documents a parameter that does not exist on the test method (which takes no arguments)." -->
[Test]
public async Task GetByPointOfCare_ShouldReturnDisplays()
{
@@ -301,6 +309,7 @@ public class DisplayServiceTest
/// Verifies that <see cref="DisplayService.GetByConfigId"/> returns the displays associated with the specified configuration ID retrieved from the repository.
/// </summary>
/// <returns>A task that completes when the assertion confirms the returned collection contains the expected number of displays.</returns>
/// <!-- aidoc:v1 sig=0344410 body=2a414ec -->
[Test]
public async Task GetByConfigId_ShouldReturnDisplays()
{
@@ -321,6 +330,7 @@ public class DisplayServiceTest
/// <summary>
/// Verifies that the <see cref="DisplayService.GetByName"/> method throws a <see cref="NotFoundException"/> when no display matching the specified name is found in the repository.
/// </summary>
/// <!-- aidoc:v1 sig=9366b2d body=7fc914f -->
[Test]
public void GetByName_ShouldThrow_WhenNotFound()
{
@@ -337,6 +347,7 @@ public class DisplayServiceTest
/// <summary>
/// Verifies that <c>GetInfo</c> returns a <see cref="Display"/> with its associated <c>PointOfCare</c> entries populated when invoked with the "with POC" flag enabled and a valid display identifier.
/// </summary>
/// <!-- aidoc:v1 sig=0097b05 body=1dea72f -->
[Test]
public async Task GetInfo_ShouldReturnDisplayWithPoc()
{
@@ -381,6 +392,7 @@ public class DisplayServiceTest
/// <summary>
/// Verifies that <see cref="IDisplayService.GetByUnitId"/> returns the displays associated with the specified unit identifier when the repository contains matching records.
/// </summary>
/// <!-- aidoc:v1 sig=2c9de1f body=4dae710 -->
[Test]
public async Task GetByUnitId_ShouldReturnDisplays()
{
@@ -402,6 +414,7 @@ public class DisplayServiceTest
/// Verifies that UpdatePointOfCareList throws a <see cref="NotFoundException"/> when the display with the specified identifier does not exist.
/// </summary>
/// <exception cref="NotFoundException">Thrown when no display is found for the given id.</exception>
/// <!-- aidoc:v1 sig=fe05ec6 body=46f08a3 -->
[Test]
public void UpdatePointOfCareList_ShouldThrow_WhenDisplayNotFound()
{
@@ -422,6 +435,8 @@ public class DisplayServiceTest
/// </summary>
/// <param name="id">The unique identifier of the display whose configuration preset is being updated.</param>
/// <param name="cfgId">The unique identifier of the configuration preset to associate with the display.</param>
/// <!-- aidoc-review:v1 severity=medium kind=extra_param
/// "The method has no parameters; 'id' and 'cfgId' are local variables, not method parameters, so the <param> tags document non-existent parameters." -->
[Test]
public void UpdateConfigPreset_ShouldThrow_WhenUpdateFails()
{