mirror of https://github.com/abpframework/abp
parent
4adaf68123
commit
8bf5a24fbc
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using Mongo2Go;
|
||||||
|
|
||||||
|
namespace Volo.Docs.MongoDB
|
||||||
|
{
|
||||||
|
public class MongoDbFixture : IDisposable
|
||||||
|
{
|
||||||
|
private static readonly MongoDbRunner MongoDbRunner = MongoDbRunner.Start();
|
||||||
|
public static readonly string ConnectionString = MongoDbRunner.ConnectionString;
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
MongoDbRunner?.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace Volo.Docs.MongoDB
|
||||||
|
{
|
||||||
|
[CollectionDefinition(Name)]
|
||||||
|
public class MongoTestCollection : ICollectionFixture<MongoDbFixture>
|
||||||
|
{
|
||||||
|
public const string Name = "MongoDB Collection";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue