Cleanup after tests
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using MongoDbGenericRepository;
|
||||
|
||||
namespace IntegrationTests.Infrastructure
|
||||
{
|
||||
public class TestRepository : BaseMongoRepository, ITestRepository
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public TestRepository(string connectionString, string databaseName) : base(connectionString, databaseName)
|
||||
{
|
||||
}
|
||||
|
||||
public void DropTestCollection<TDocument>()
|
||||
{
|
||||
_mongoDbContext.DropCollection<TDocument>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user