rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
@@ -10,6 +10,9 @@ namespace adas_core.Test.Repositories;
[Category("Integration")]
public class PoCMappingRepositoryTest
{
/// <summary>
/// Performs one-time setup for integration tests by seeding the "mappings" collection with a sample <see cref="PoCMapping"/> document, where a single point of care is mapped from an original value to a new one across eleven bed entries, and initializing the <see cref="PoCMappingRepository"/> against the integration database.
/// </summary>
[OneTimeSetUp]
public async Task Init()
{
@@ -22,16 +25,16 @@ public class PoCMappingRepositoryTest
Beds =
[
new List<string> { "bed1", "bed 1" },
new List<string> { "bed2", "bed 2" },
new List<string> { "bed3", "bed 3" },
new List<string> { "bed4", "bed 4" },
new List<string> { "bed5", "bed 5" },
new List<string> { "bed6", "bed 6" },
new List<string> { "bed7", "bed 7" },
new List<string> { "bed8", "bed 8" },
new List<string> { "bed9", "bed 9" },
new List<string> { "bed10", "bed 10" },
new List<string> { "bed11", "bed 11" }
new List<string> { "bed2", "bed 2" },
new List<string> { "bed3", "bed 3" },
new List<string> { "bed4", "bed 4" },
new List<string> { "bed5", "bed 5" },
new List<string> { "bed6", "bed 6" },
new List<string> { "bed7", "bed 7" },
new List<string> { "bed8", "bed 8" },
new List<string> { "bed9", "bed 9" },
new List<string> { "bed10", "bed 10" },
new List<string> { "bed11", "bed 11" }
]
};
@@ -58,6 +61,9 @@ public class PoCMappingRepositoryTest
private IOptions<ApiSettings> _optionsApiSettings;
/// <summary>
/// Verifies that finding a mapping by the key "PV1" returns a non-null result containing point of care entries with at least one associated bed.
/// </summary>
[Test]
public async Task FindByKey_Find_Return_Mapping()
{
@@ -68,6 +74,9 @@ public class PoCMappingRepositoryTest
Assert.That(result.PointOfCares[0].Beds, Has.Count.GreaterThan(0));
}
/// <summary>
/// Verifies that the repository's FindByKey method returns null when the provided key does not correspond to an existing entity, confirming the not-found behavior.
/// </summary>
[Test]
public async Task FindByKey_Not_Find_Return_Mapping()
{