unit tests
This commit is contained in:
@@ -1,6 +1,30 @@
|
||||
using MongoDB.Driver;
|
||||
using MongoDbGenericRepository;
|
||||
using MongoDbGenericRepository.DataAccess.Create;
|
||||
using MongoDbGenericRepository.DataAccess.Index;
|
||||
using MongoDbGenericRepository.DataAccess.Read;
|
||||
|
||||
namespace CoreUnitTests.Infrastructure;
|
||||
|
||||
public class TestKeyedMongoRepository : KeyedMongoRepository<TestDocument, TestDocumentKey>
|
||||
public class TestKeyedMongoRepository : BaseMongoRepository<int>
|
||||
{
|
||||
public TestKeyedMongoRepository(IMongoDatabase mongoDatabase)
|
||||
: base(mongoDatabase)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetIndexHandler(IMongoDbIndexHandler indexHandler)
|
||||
{
|
||||
MongoDbIndexHandler = indexHandler;
|
||||
}
|
||||
|
||||
public void SetDbCreator(IMongoDbCreator creator)
|
||||
{
|
||||
MongoDbCreator = creator;
|
||||
}
|
||||
|
||||
public void SetReader(IMongoDbReader reader)
|
||||
{
|
||||
MongoDbReader = reader;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user