Se arreglo el problema de id al actualizar
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user