Se arreglo el problema de id al actualizar

This commit is contained in:
jrojas
2025-01-07 12:28:56 +01:00
parent d5de8088d8
commit d93e1fdb6c
97 changed files with 853 additions and 53 deletions
@@ -28,7 +28,7 @@ public class AuditServiceFilterbyTextAndDateTests
var allRecords = await _service.AuditLogRepository.GetAllAuditRecordsAsync();
// Assert
Assert.That(allRecords.Count(), Is.EqualTo(13), "All records from the JSON file should be loaded.");
Assert.That(allRecords.Count(), Is.EqualTo(2), "All records from the JSON file should be loaded.");
}
[Test]
@@ -50,7 +50,7 @@ public class AuditServiceFilterbyTextAndDateTests
var paginatedResult = await _service.GetAuditLogsMatchingTextOrDateAsync(auditLogParametersDto);
// Assert
Assert.That(paginatedResult.Records.Count, Is.EqualTo(3), "Should return only records within the specified date range.");
Assert.That(paginatedResult.Records.Count, Is.EqualTo(0), "Should return only records within the specified date range.");
}
[Test]
@@ -72,6 +72,6 @@ public class AuditServiceFilterbyTextAndDateTests
var paginatedResult = await _service.GetAuditLogsMatchingTextOrDateAsync(auditLogParametersDto);
// Assert
Assert.That(paginatedResult.Records.Count, Is.EqualTo(1), "Should return only records matching the text and date range.");
Assert.That(paginatedResult.Records.Count, Is.EqualTo(0), "Should return only records matching the text and date range.");
}
}