unit tests

This commit is contained in:
Sean Garrett
2023-06-15 21:56:47 +01:00
parent 0cf6a7e5d3
commit 54e756c695
18 changed files with 817 additions and 8 deletions
@@ -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;
}
}