added some missing cancellation tokens and fixed incorrect tests

This commit is contained in:
Sean Garrett
2023-06-16 22:40:46 +01:00
parent f09cfc53c2
commit 23780697fb
25 changed files with 1077 additions and 175 deletions
@@ -16,7 +16,7 @@ public class AnyTests : TestMongoRepositoryContext
public async Task AnyAsync_EnsureTokenPassed()
{
// Arrange
var token = new CancellationToken();
var token = new CancellationToken(true);
Reader = new Mock<IMongoDbReader>();
Reader
@@ -31,4 +31,4 @@ public class AnyTests : TestMongoRepositoryContext
.Verify(x => x.AnyAsync<TestDocument, Guid>(
t => string.IsNullOrWhiteSpace(t.SomeContent2), null, token));
}*/
}
}
@@ -16,7 +16,7 @@ public class CountTests : TestMongoRepositoryContext
public async Task CountAsync_EnsureTokenPassed()
{
// Arrange
var token = new CancellationToken();
var token = new CancellationToken(true);
Reader = new Mock<IMongoDbReader>();
Reader
@@ -31,4 +31,4 @@ public class CountTests : TestMongoRepositoryContext
Reader.Verify(x => x.CountAsync<TestDocument, Guid>(
t => string.IsNullOrWhiteSpace(t.SomeContent2), null, token));
}*/
}
}