keyed Delete unit tests

This commit is contained in:
Sean Garrett
2023-06-16 11:51:40 +01:00
parent 54e756c695
commit c6545b9448
19 changed files with 565 additions and 138 deletions
@@ -1,3 +1,4 @@
using System;
using System.Threading;
using CoreUnitTests.Infrastructure;
using MongoDB.Bson;
@@ -18,7 +19,7 @@ public class BaseIndexTests : TestMongoRepositoryContext
asyncCursor
.SetupGet(x => x.Current)
.Returns(new[] {index});
.Returns(new[] { index });
var indexManager = new Mock<IMongoIndexManager<TDocument>>();
indexManager
@@ -28,7 +29,7 @@ public class BaseIndexTests : TestMongoRepositoryContext
collection
.SetupGet(x => x.Indexes)
.Returns(indexManager.Object);
return asyncCursor;
}
}