fixed some tests

This commit is contained in:
Alexandre SPIESER
2019-04-14 18:10:45 +01:00
parent 29f01d2dab
commit 0626292d09
2 changed files with 37 additions and 28 deletions
@@ -305,7 +305,7 @@ namespace MongoDbGenericRepository
public async Task DropIndexAsync<TDocument>(string indexName, string partitionKey = null)
where TDocument : IDocument<Guid>
{
await MongoDbIndexHandler.DropIndexAsync<TDocument, Guid>(partitionKey);
await MongoDbIndexHandler.DropIndexAsync<TDocument, Guid>(indexName, partitionKey);
}
/// <inheritdoc />
@@ -313,7 +313,7 @@ namespace MongoDbGenericRepository
where TDocument : IDocument<TKey>
where TKey : IEquatable<TKey>
{
await MongoDbIndexHandler.DropIndexAsync<TDocument, TKey>(partitionKey);
await MongoDbIndexHandler.DropIndexAsync<TDocument, TKey>(indexName, partitionKey);
}
}
}