Cleanup after tests

This commit is contained in:
alexandre-spieser
2017-08-27 15:50:39 +00:00
parent 5c4d0f5c63
commit 5817486f10
6 changed files with 49 additions and 66 deletions
@@ -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>();
}
}
}