=== 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:
@@ -11,6 +11,7 @@ namespace adas_core.Application.Services;
|
||||
/// Provides a proof-of-concept implementation of the IPoCMappingService interface,
|
||||
/// delivering the mapping functionality defined by that contract.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=47ed72e -->
|
||||
public class PoCMappingService : IPoCMappingService
|
||||
{
|
||||
private readonly string _key;
|
||||
@@ -41,6 +42,8 @@ public class PoCMappingService : IPoCMappingService
|
||||
/// </summary>
|
||||
/// <param name="original">location</param>
|
||||
/// <returns>mapped location</returns>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "Summary states 'otherwise it returns null', but the code returns the original `PatientLocation` when `newBed` is empty and `_mappingRequired` is false, not always null." -->
|
||||
public async Task<PatientLocation?> Map(PatientLocation original)
|
||||
{
|
||||
var pocMapping = await GetMapping();
|
||||
@@ -55,6 +58,8 @@ public class PoCMappingService : IPoCMappingService
|
||||
/// Return mapping from cache of database based on refreshTime
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <!-- aidoc-review:v1 severity=medium kind=missing_returns
|
||||
/// "The <returns> tag is empty and does not describe that the method returns a Task<PoCMapping?> (the cached or freshly fetched mapping, or null)." -->
|
||||
private async Task<PoCMapping?> GetMapping()
|
||||
{
|
||||
if (_mapping == null || DateTime.Now > _nextRefresh)
|
||||
|
||||
Reference in New Issue
Block a user