Do Pagination missing sortBy and sortDirection parameters
This commit is contained in:
@@ -434,10 +434,11 @@ public class VerificationTests : IAsyncLifetime
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test: Entry queue returns Uploaded, InEntry, and Rejected batches.
|
||||
/// Test: Entry queue returns InEntry and Rejected batches, but NOT Uploaded
|
||||
/// (Uploaded batches must be assigned first, which transitions them to InEntry).
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task EntryQueue_ReturnsUploadedInEntryAndRejectedBatches()
|
||||
public async Task EntryQueue_ReturnsInEntryAndRejectedBatches_ExcludesUploaded()
|
||||
{
|
||||
// Arrange
|
||||
using var scope = _fixture.Services.CreateScope();
|
||||
@@ -451,7 +452,7 @@ public class VerificationTests : IAsyncLifetime
|
||||
var pendingBatch = await BatchSeedHelper.SeedBatchInPendingVerificationAsync(
|
||||
db, (await BatchSeedHelper.UserIdAsync(db, "entry2")));
|
||||
|
||||
// Seed an Uploaded batch directly
|
||||
// Seed an Uploaded batch directly (should NOT appear — must be assigned first)
|
||||
var uploadedBatchId = Guid.NewGuid();
|
||||
db.DigitizationBatches.Add(new DigitizationBatch
|
||||
{
|
||||
@@ -495,12 +496,12 @@ public class VerificationTests : IAsyncLifetime
|
||||
.ToList();
|
||||
|
||||
batchIds.Should().Contain(rejectedBatch.Id.ToString());
|
||||
batchIds.Should().Contain(uploadedBatchId.ToString());
|
||||
batchIds.Should().NotContain(uploadedBatchId.ToString(),
|
||||
"Uploaded batches must be assigned before appearing in the entry queue");
|
||||
batchIds.Should().NotContain(pendingBatch.Id.ToString());
|
||||
|
||||
var entryStatuses = new[]
|
||||
{
|
||||
BatchStatus.Uploaded.ToDbString(),
|
||||
BatchStatus.InEntry.ToDbString(),
|
||||
BatchStatus.Rejected.ToDbString()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user