Cleanup after tests
This commit is contained in:
1 parent
5c4d0f5c63
commit
5817486f10
6 files changed
+49
-66
No files matched your search
@@ -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