tests fixes and sprints work
This commit is contained in:
@@ -576,7 +576,7 @@ public static class UnknownsCommandGroup
|
||||
return 1;
|
||||
}
|
||||
|
||||
var result = await response.Content.ReadFromJsonAsync<UnknownsListResponse>(JsonOptions, ct);
|
||||
var result = await response.Content.ReadFromJsonAsync<LegacyUnknownsListResponse>(JsonOptions, ct);
|
||||
|
||||
if (result is null)
|
||||
{
|
||||
@@ -603,7 +603,7 @@ public static class UnknownsCommandGroup
|
||||
}
|
||||
}
|
||||
|
||||
private static void PrintUnknownsTable(UnknownsListResponse result)
|
||||
private static void PrintUnknownsTable(LegacyUnknownsListResponse result)
|
||||
{
|
||||
Console.WriteLine($"Unknowns Registry ({result.TotalCount} total, showing {result.Items.Count})");
|
||||
Console.WriteLine(new string('=', 80));
|
||||
@@ -1269,10 +1269,10 @@ public static class UnknownsCommandGroup
|
||||
}
|
||||
|
||||
var listResponse = await response.Content.ReadFromJsonAsync<UnknownsListResponse>(JsonOptions, ct);
|
||||
unknowns = listResponse?.Items.Select(i => new BudgetUnknownDto
|
||||
unknowns = listResponse?.Items?.Select(i => new BudgetUnknownDto
|
||||
{
|
||||
Id = i.Id,
|
||||
ReasonCode = "Reachability" // Default if not provided
|
||||
Id = i.Id.ToString("D"),
|
||||
ReasonCode = "Reachability" // Default if not provided
|
||||
}).ToList() ?? [];
|
||||
}
|
||||
else
|
||||
@@ -1506,7 +1506,7 @@ public static class UnknownsCommandGroup
|
||||
|
||||
#region DTOs
|
||||
|
||||
private sealed record UnknownsListResponse(
|
||||
private sealed record LegacyUnknownsListResponse(
|
||||
IReadOnlyList<UnknownItem> Items,
|
||||
int TotalCount,
|
||||
int Offset,
|
||||
|
||||
Reference in New Issue
Block a user