mirror of https://github.com/abpframework/abp.git
20 changed files with 168 additions and 49 deletions
@ -1,7 +1,8 @@ |
|||
namespace Volo.Abp.Users.MongoDB |
|||
{ |
|||
[Collection(MongoTestCollection.Name)] |
|||
public class ExternalUserLookupService_Tests : ExternalUserLookupService_Tests<AbpUsersMongoDbTestModule> |
|||
{ |
|||
|
|||
|
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,7 +1,8 @@ |
|||
namespace Volo.Abp.Users.MongoDB |
|||
{ |
|||
[Collection(MongoTestCollection.Name)] |
|||
public class LocalUserLookupService_Tests : LocalUserLookupService_Tests<AbpUsersMongoDbTestModule> |
|||
{ |
|||
|
|||
|
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,22 @@ |
|||
using System; |
|||
using Mongo2Go; |
|||
|
|||
namespace Volo.Abp.Users.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(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
using Xunit; |
|||
|
|||
namespace Volo.Abp.Users.MongoDB |
|||
{ |
|||
[CollectionDefinition(Name)] |
|||
public class MongoTestCollection : ICollectionFixture<MongoDbFixture> |
|||
{ |
|||
public const string Name = "MongoDB Collection"; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue