-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from EasyAbp/abp-7.3
Upgrade to ABP 7.3.0
- Loading branch information
Showing
91 changed files
with
472 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 22 additions & 3 deletions
25
integration/EasyAbp.EShop/test/EasyAbp.EShop.MongoDB.Tests/MongoDB/MongoDbFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...es/EasyAbp.EShop.Orders/test/EasyAbp.EShop.Orders.MongoDB.Tests/MongoDB/MongoDbFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using EphemeralMongo; | ||
|
||
namespace EasyAbp.EShop.Orders.MongoDB; | ||
|
||
public class MongoDbFixture : IDisposable | ||
{ | ||
public readonly static IMongoRunner MongoDbRunner; | ||
|
||
static MongoDbFixture() | ||
{ | ||
MongoDbRunner = MongoRunner.Run(new MongoRunnerOptions | ||
{ | ||
UseSingleNodeReplicaSet = true | ||
}); | ||
} | ||
|
||
public static string GetRandomConnectionString() | ||
{ | ||
return GetConnectionString("Db_" + Guid.NewGuid().ToString("N")); | ||
} | ||
|
||
public static string GetConnectionString(string databaseName) | ||
{ | ||
var stringArray = MongoDbRunner.ConnectionString.Split('?'); | ||
var connectionString = stringArray[0].EnsureEndsWith('/') + databaseName + "/?" + stringArray[1]; | ||
return connectionString; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
MongoDbRunner?.Dispose(); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...syAbp.EShop.Orders/test/EasyAbp.EShop.Orders.MongoDB.Tests/MongoDB/MongoTestCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Xunit; | ||
|
||
namespace EasyAbp.EShop.Orders.MongoDB; | ||
|
||
[CollectionDefinition(Name)] | ||
public class MongoTestCollection : ICollectionFixture<MongoDbFixture> | ||
{ | ||
public const string Name = "MongoDB Collection"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...asyAbp.EShop.Payments/test/EasyAbp.EShop.Payments.MongoDB.Tests/MongoDB/MongoDbFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using EphemeralMongo; | ||
|
||
namespace EasyAbp.EShop.Payments.MongoDB; | ||
|
||
public class MongoDbFixture : IDisposable | ||
{ | ||
public readonly static IMongoRunner MongoDbRunner; | ||
|
||
static MongoDbFixture() | ||
{ | ||
MongoDbRunner = MongoRunner.Run(new MongoRunnerOptions | ||
{ | ||
UseSingleNodeReplicaSet = true | ||
}); | ||
} | ||
|
||
public static string GetRandomConnectionString() | ||
{ | ||
return GetConnectionString("Db_" + Guid.NewGuid().ToString("N")); | ||
} | ||
|
||
public static string GetConnectionString(string databaseName) | ||
{ | ||
var stringArray = MongoDbRunner.ConnectionString.Split('?'); | ||
var connectionString = stringArray[0].EnsureEndsWith('/') + databaseName + "/?" + stringArray[1]; | ||
return connectionString; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
MongoDbRunner?.Dispose(); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...p.EShop.Payments/test/EasyAbp.EShop.Payments.MongoDB.Tests/MongoDB/MongoTestCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Xunit; | ||
|
||
namespace EasyAbp.EShop.Payments.MongoDB; | ||
|
||
[CollectionDefinition(Name)] | ||
public class MongoTestCollection : ICollectionFixture<MongoDbFixture> | ||
{ | ||
public const string Name = "MongoDB Collection"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.