mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
494 B
23 lines
494 B
using System;
|
|
using Mongo2Go;
|
|
|
|
namespace Volo.Docs.MongoDB
|
|
{
|
|
public class MongoDbFixture : IDisposable
|
|
{
|
|
private static readonly MongoDbRunner MongoDbRunner;
|
|
public static readonly string ConnectionString;
|
|
|
|
static MongoDbFixture()
|
|
{
|
|
MongoDbRunner = MongoDbRunner.Start();
|
|
ConnectionString = MongoDbRunner.ConnectionString;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
MongoDbRunner?.Dispose();
|
|
}
|
|
}
|
|
}
|