(options =>
- {
- //Configure authorization.
- });
- }
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj
deleted file mode 100644
index 27a1f23a..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
- netcoreapp3.1
- $(AssetTargetFallback);portable-net45+win8+wp8+wpa81;
- true
- Library
- EasyAbp.EShop.Payments.WeChatPay.Web
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml
deleted file mode 100644
index be0de3a9..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e2..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml
deleted file mode 100644
index 6c844ef0..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml
+++ /dev/null
@@ -1,7 +0,0 @@
-@page
-@inherits EasyAbp.EShop.Payments.WeChatPay.Web.Pages.WeChatPayPage
-@model EasyAbp.EShop.Payments.WeChatPay.Web.Pages.EShop.Payments.WeChatPay.IndexModel
-@{
-}
-WeChatPay
-A sample page for the WeChatPay module.
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs
deleted file mode 100644
index 790b2f88..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace EasyAbp.EShop.Payments.WeChatPay.Web.Pages.EShop.Payments.WeChatPay
-{
- public class IndexModel : WeChatPayPageModel
- {
- public void OnGet()
- {
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml
deleted file mode 100644
index c1da1f5f..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml
+++ /dev/null
@@ -1,4 +0,0 @@
-@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
-@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
-@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
-@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs
deleted file mode 100644
index 1536b51a..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using Microsoft.AspNetCore.Mvc.Localization;
-using Microsoft.AspNetCore.Mvc.Razor.Internal;
-using EasyAbp.EShop.Payments.WeChatPay.Localization;
-using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.Web.Pages
-{
- /* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder):
- * @inherits EasyAbp.EShop.Payments.WeChatPay.Web.Pages.WeChatPayPage
- */
- public abstract class WeChatPayPage : AbpPage
- {
- [RazorInject]
- public IHtmlLocalizer L { get; set; }
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs
deleted file mode 100644
index c85d76c6..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using EasyAbp.EShop.Payments.WeChatPay.Localization;
-using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.Web.Pages
-{
- /* Inherit your PageModel classes from this class.
- */
- public abstract class WeChatPayPageModel : AbpPageModel
- {
- protected WeChatPayPageModel()
- {
- LocalizationResourceType = typeof(WeChatPayResource);
- ObjectMapperContext = typeof(EShopPaymentsWeChatPayWebModule);
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json
deleted file mode 100644
index 87e1d66f..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "iisSettings": {
- "windowsAuthentication": false,
- "anonymousAuthentication": true,
- "iisExpress": {
- "applicationUrl": "http://localhost:56993/",
- "sslPort": 0
- }
- },
- "profiles": {
- "IIS Express": {
- "commandName": "IISExpress",
- "launchBrowser": true,
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- },
- "EasyAbp.EShop.Payments.WeChatPay.Web": {
- "commandName": "Project",
- "launchBrowser": true,
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- },
- "applicationUrl": "http://localhost:56994/"
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs
deleted file mode 100644
index ac17b1bf..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Threading.Tasks;
-using Volo.Abp.UI.Navigation;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.Web
-{
- public class WeChatPayMenuContributor : IMenuContributor
- {
- public async Task ConfigureMenuAsync(MenuConfigurationContext context)
- {
- if (context.Menu.Name == StandardMenus.Main)
- {
- await ConfigureMainMenu(context);
- }
- }
-
- private Task ConfigureMainMenu(MenuConfigurationContext context)
- {
- //Add main menu items.
-
- return Task.CompletedTask;
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs
deleted file mode 100644
index d3e5e1d1..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using AutoMapper;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.Web
-{
- public class WeChatPayWebAutoMapperProfile : Profile
- {
- public WeChatPayWebAutoMapperProfile()
- {
- /* You can configure your AutoMapper mapping configuration here.
- * Alternatively, you can split your mapping configurations
- * into multiple profile classes for a better organization. */
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs
deleted file mode 100644
index ba3e4fcc..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using Volo.Abp.Modularity;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- [DependsOn(
- typeof(EShopPaymentsWeChatPayApplicationModule),
- typeof(EShopPaymentsWeChatPayDomainTestModule)
- )]
- public class EShopPaymentsWeChatPayApplicationTestModule : AbpModule
- {
-
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj
deleted file mode 100644
index ed3260fb..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- netcoreapp3.1
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml
deleted file mode 100644
index be0de3a9..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e2..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs
deleted file mode 100644
index 2992e84a..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- /* Inherit from this class for your application layer tests.
- * See SampleAppService_Tests for example.
- */
- public abstract class WeChatPayApplicationTestBase : WeChatPayTestBase
- {
-
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs
deleted file mode 100644
index e63a887a..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore;
-using Volo.Abp.Modularity;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- /* Domain tests are configured to use the EF Core provider.
- * You can switch to MongoDB, however your domain tests should be
- * database independent anyway.
- */
- [DependsOn(
- typeof(EShopPaymentsWeChatPayEntityFrameworkCoreTestModule)
- )]
- public class EShopPaymentsWeChatPayDomainTestModule : AbpModule
- {
-
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj
deleted file mode 100644
index 04e38710..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
- netcoreapp3.1
-
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml
deleted file mode 100644
index be0de3a9..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e2..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs
deleted file mode 100644
index e49781d4..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- /* Inherit from this class for your domain layer tests.
- * See SampleManager_Tests for example.
- */
- public abstract class WeChatPayDomainTestBase : WeChatPayTestBase
- {
-
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj
deleted file mode 100644
index f8169661..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
- netcoreapp3.1
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs
deleted file mode 100644
index 2697eb0e..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using Microsoft.Data.Sqlite;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Storage;
-using Volo.Abp.EntityFrameworkCore;
-using Volo.Abp.Modularity;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore
-{
- [DependsOn(
- typeof(EShopPaymentsWeChatPayTestBaseModule),
- typeof(EShopPaymentsWeChatPayEntityFrameworkCoreModule)
- )]
- public class EShopPaymentsWeChatPayEntityFrameworkCoreTestModule : AbpModule
- {
- public override void ConfigureServices(ServiceConfigurationContext context)
- {
- var sqliteConnection = CreateDatabaseAndGetConnection();
-
- Configure(options =>
- {
- options.Configure(abpDbContextConfigurationContext =>
- {
- abpDbContextConfigurationContext.DbContextOptions.UseSqlite(sqliteConnection);
- });
- });
- }
-
- private static SqliteConnection CreateDatabaseAndGetConnection()
- {
- var connection = new SqliteConnection("Data Source=:memory:");
- connection.Open();
-
- new WeChatPayDbContext(
- new DbContextOptionsBuilder().UseSqlite(connection).Options
- ).GetService().CreateTables();
-
- return connection;
- }
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs
deleted file mode 100644
index 558ad596..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore
-{
- /* This class can be used as a base class for EF Core integration tests,
- * while SampleRepository_Tests uses a different approach.
- */
- public abstract class WeChatPayEntityFrameworkCoreTestBase : WeChatPayTestBase
- {
-
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml
deleted file mode 100644
index be0de3a9..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e2..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs
deleted file mode 100644
index 091eaa6c..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs
+++ /dev/null
@@ -1,146 +0,0 @@
-using System;
-using System.Net.Http;
-using System.Threading.Tasks;
-using IdentityModel.Client;
-using Microsoft.Extensions.Configuration;
-using Volo.Abp.DependencyInjection;
-using Volo.Abp.IdentityModel;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- public class ClientDemoService : ITransientDependency
- {
- private readonly IIdentityModelAuthenticationService _authenticationService;
- private readonly IConfiguration _configuration;
-
- public ClientDemoService(
- IIdentityModelAuthenticationService authenticationService,
- IConfiguration configuration)
- {
- _authenticationService = authenticationService;
- _configuration = configuration;
- }
-
- public async Task RunAsync()
- {
- await TestWithDynamicProxiesAsync();
- await TestWithHttpClientAndIdentityModelAuthenticationServiceAsync();
- await TestAllManuallyAsync();
- }
-
- /* Shows how to perform an HTTP request to the API using ABP's dynamic c# proxy
- * feature. It is just simple as calling a local service method.
- * Authorization and HTTP request details are handled by the ABP framework.
- */
- private async Task TestWithDynamicProxiesAsync()
- {
- Console.WriteLine();
- Console.WriteLine($"***** {nameof(TestWithDynamicProxiesAsync)} *****");
- }
-
- /* Shows how to use HttpClient to perform a request to the HTTP API.
- * It uses ABP's IIdentityModelAuthenticationService to simplify obtaining access tokens.
- */
- private async Task TestWithHttpClientAndIdentityModelAuthenticationServiceAsync()
- {
- Console.WriteLine();
- Console.WriteLine($"***** {nameof(TestWithHttpClientAndIdentityModelAuthenticationServiceAsync)} *****");
-
- //Get access token using ABP's IIdentityModelAuthenticationService
-
- var accessToken = await _authenticationService.GetAccessTokenAsync(
- new IdentityClientConfiguration(
- _configuration["IdentityClients:Default:Authority"],
- _configuration["IdentityClients:Default:Scope"],
- _configuration["IdentityClients:Default:ClientId"],
- _configuration["IdentityClients:Default:ClientSecret"],
- _configuration["IdentityClients:Default:GrantType"],
- _configuration["IdentityClients:Default:UserName"],
- _configuration["IdentityClients:Default:UserPassword"]
- )
- );
-
- //Perform the actual HTTP request
-
- using (var httpClient = new HttpClient())
- {
- httpClient.SetBearerToken(accessToken);
-
- var url = _configuration["RemoteServices:WeChatPay:BaseUrl"] +
- "api/WeChatPay/sample/authorized";
-
- var responseMessage = await httpClient.GetAsync(url);
- if (responseMessage.IsSuccessStatusCode)
- {
- var responseString = await responseMessage.Content.ReadAsStringAsync();
- Console.WriteLine("Result: " + responseString);
- }
- else
- {
- throw new Exception("Remote server returns error code: " + responseMessage.StatusCode);
- }
- }
- }
-
- /* Shows how to use HttpClient to perform a request to the HTTP API.
- * It obtains access token using IdentityServer's API. See its documentation:
- * https://identityserver4.readthedocs.io/en/latest/quickstarts/2_resource_owner_passwords.html
- */
- private async Task TestAllManuallyAsync()
- {
- Console.WriteLine();
- Console.WriteLine($"***** {nameof(TestAllManuallyAsync)} *****");
-
- //Obtain access token from the IDS4 server
-
- // discover endpoints from metadata
- var client = new HttpClient();
- var disco = await client.GetDiscoveryDocumentAsync(_configuration["IdentityClients:Default:Authority"]);
- if (disco.IsError)
- {
- Console.WriteLine(disco.Error);
- return;
- }
-
- // request token
- var tokenResponse = await client.RequestPasswordTokenAsync(new PasswordTokenRequest
- {
- Address = disco.TokenEndpoint,
- ClientId = _configuration["IdentityClients:Default:ClientId"],
- ClientSecret = _configuration["IdentityClients:Default:ClientSecret"],
- UserName = _configuration["IdentityClients:Default:UserName"],
- Password = _configuration["IdentityClients:Default:UserPassword"],
- Scope = _configuration["IdentityClients:Default:Scope"]
- });
-
- if (tokenResponse.IsError)
- {
- Console.WriteLine(tokenResponse.Error);
- return;
- }
-
- Console.WriteLine(tokenResponse.Json);
-
- //Perform the actual HTTP request
-
- using (var httpClient = new HttpClient())
- {
- httpClient.SetBearerToken(tokenResponse.AccessToken);
-
- var url = _configuration["RemoteServices:WeChatPay:BaseUrl"] +
- "api/WeChatPay/sample/authorized";
-
- var responseMessage = await httpClient.GetAsync(url);
- if (responseMessage.IsSuccessStatusCode)
- {
- var responseString = await responseMessage.Content.ReadAsStringAsync();
- Console.WriteLine("Result: " + responseString);
- }
- else
- {
- throw new Exception("Remote server returns error code: " + responseMessage.StatusCode);
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs
deleted file mode 100644
index 581ee226..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using Microsoft.Extensions.Hosting;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Extensions.DependencyInjection;
-using Volo.Abp;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp
-{
- public class ConsoleTestAppHostedService : IHostedService
- {
- public async Task StartAsync(CancellationToken cancellationToken)
- {
- using (var application = AbpApplicationFactory.Create())
- {
- application.Initialize();
-
- var demo = application.ServiceProvider.GetRequiredService();
- await demo.RunAsync();
-
- application.Shutdown();
- }
- }
-
- public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs
deleted file mode 100644
index 69c90824..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using Volo.Abp.Http.Client.IdentityModel;
-using Volo.Abp.Modularity;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- [DependsOn(
- typeof(EShopPaymentsWeChatPayHttpApiClientModule),
- typeof(AbpHttpClientIdentityModelModule)
- )]
- public class EShopPaymentsWeChatPayConsoleApiClientModule : AbpModule
- {
-
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj
deleted file mode 100644
index d81eb860..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- Exe
- netcoreapp3.1
-
-
-
-
-
-
-
-
-
-
-
- PreserveNewest
- Always
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs
deleted file mode 100644
index 10b7dd84..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Threading.Tasks;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp
-{
- class Program
- {
- static async Task Main(string[] args)
- {
- await CreateHostBuilder(args).RunConsoleAsync();
- }
-
- public static IHostBuilder CreateHostBuilder(string[] args) =>
- Host.CreateDefaultBuilder(args)
- .ConfigureServices((hostContext, services) =>
- {
- services.AddHostedService();
- });
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json
deleted file mode 100644
index 088131bb..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "RemoteServices": {
- "Default": {
- "BaseUrl": "https://localhost:44343/"
- },
- "WeChatPay": {
- "BaseUrl": "https://localhost:44399/"
- }
- },
- "IdentityClients": {
- "Default": {
- "GrantType": "password",
- "ClientId": "WeChatPay_ConsoleTestApp",
- "ClientSecret": "1q2w3e*",
- "UserName": "admin",
- "UserPassword": "1q2w3E*",
- "Authority": "https://localhost:44343/",
- "Scope": "WeChatPay"
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj
deleted file mode 100644
index 7ea9a24f..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
- netcoreapp3.1
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml
deleted file mode 100644
index be0de3a9..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e2..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs
deleted file mode 100644
index 0fc509e6..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using Mongo2Go;
-using Volo.Abp;
-using Volo.Abp.Data;
-using Volo.Abp.Modularity;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB
-{
- [DependsOn(
- typeof(EShopPaymentsWeChatPayTestBaseModule),
- typeof(EShopPaymentsWeChatPayMongoDbModule)
- )]
- public class EShopPaymentsWeChatPayMongoDbTestModule : AbpModule
- {
- private static readonly MongoDbRunner MongoDbRunner = MongoDbRunner.Start();
-
- public override void ConfigureServices(ServiceConfigurationContext context)
- {
- var connectionString = MongoDbRunner.ConnectionString.EnsureEndsWith('/') +
- "Db_" +
- Guid.NewGuid().ToString("N");
-
- Configure(options =>
- {
- options.ConnectionStrings.Default = connectionString;
- });
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs
deleted file mode 100644
index 67027e42..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB
-{
- /* This class can be used as a base class for MongoDB integration tests,
- * while SampleRepository_Tests uses a different approach.
- */
- public abstract class WeChatPayMongoDbTestBase : WeChatPayTestBase
- {
-
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs
deleted file mode 100644
index 0d1e278f..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Microsoft.Extensions.DependencyInjection;
-using Volo.Abp;
-using Volo.Abp.Authorization;
-using Volo.Abp.Autofac;
-using Volo.Abp.Data;
-using Volo.Abp.Modularity;
-using Volo.Abp.Threading;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- [DependsOn(
- typeof(AbpAutofacModule),
- typeof(AbpTestBaseModule),
- typeof(AbpAuthorizationModule),
- typeof(EShopPaymentsWeChatPayDomainModule)
- )]
- public class EShopPaymentsWeChatPayTestBaseModule : AbpModule
- {
- public override void ConfigureServices(ServiceConfigurationContext context)
- {
- context.Services.AddAlwaysAllowAuthorization();
- }
-
- public override void OnApplicationInitialization(ApplicationInitializationContext context)
- {
- SeedTestData(context);
- }
-
- private static void SeedTestData(ApplicationInitializationContext context)
- {
- AsyncHelper.RunSync(async () =>
- {
- using (var scope = context.ServiceProvider.CreateScope())
- {
- await scope.ServiceProvider
- .GetRequiredService()
- .SeedAsync();
- }
- });
- }
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj
deleted file mode 100644
index c503cffb..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
- netcoreapp3.1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml
deleted file mode 100644
index be0de3a9..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e2..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs
deleted file mode 100644
index 38d27785..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.Collections.Generic;
-using System.Security.Claims;
-using Volo.Abp.DependencyInjection;
-using Volo.Abp.Security.Claims;
-
-namespace EasyAbp.EShop.Payments.WeChatPay.Security
-{
- [Dependency(ReplaceServices = true)]
- public class FakeCurrentPrincipalAccessor : ICurrentPrincipalAccessor, ISingletonDependency
- {
- public ClaimsPrincipal Principal => GetPrincipal();
- private ClaimsPrincipal _principal;
-
- private ClaimsPrincipal GetPrincipal()
- {
- if (_principal == null)
- {
- lock (this)
- {
- if (_principal == null)
- {
- _principal = new ClaimsPrincipal(
- new ClaimsIdentity(
- new List
- {
- new Claim(AbpClaimTypes.UserId,"2e701e62-0953-4dd3-910b-dc6cc93ccb0d"),
- new Claim(AbpClaimTypes.UserName,"admin"),
- new Claim(AbpClaimTypes.Email,"admin@abp.io")
- }
- )
- );
- }
- }
- }
-
- return _principal;
- }
- }
-}
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs
deleted file mode 100644
index 30b27a31..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Threading.Tasks;
-using Volo.Abp.Data;
-using Volo.Abp.DependencyInjection;
-using Volo.Abp.Guids;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- public class WeChatPayDataSeedContributor : IDataSeedContributor, ITransientDependency
- {
- private readonly IGuidGenerator _guidGenerator;
-
- public WeChatPayDataSeedContributor(
- IGuidGenerator guidGenerator)
- {
- _guidGenerator = guidGenerator;
- }
-
- public Task SeedAsync(DataSeedContext context)
- {
- /* Instead of returning the Task.CompletedTask, you can insert your test data
- * at this point!
- */
-
- return Task.CompletedTask;
- }
- }
-}
\ No newline at end of file
diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs
deleted file mode 100644
index 5f663a72..00000000
--- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.Extensions.DependencyInjection;
-using Volo.Abp;
-using Volo.Abp.Modularity;
-using Volo.Abp.Uow;
-using Volo.Abp.Testing;
-
-namespace EasyAbp.EShop.Payments.WeChatPay
-{
- /* All test classes are derived from this class, directly or indirectly. */
- public abstract class WeChatPayTestBase : AbpIntegratedTest
- where TStartupModule : IAbpModule
- {
- protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options)
- {
- options.UseAutofac();
- }
-
- protected virtual Task WithUnitOfWorkAsync(Func func)
- {
- return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func);
- }
-
- protected virtual async Task WithUnitOfWorkAsync(AbpUnitOfWorkOptions options, Func action)
- {
- using (var scope = ServiceProvider.CreateScope())
- {
- var uowManager = scope.ServiceProvider.GetRequiredService();
-
- using (var uow = uowManager.Begin(options))
- {
- await action();
-
- await uow.CompleteAsync();
- }
- }
- }
-
- protected virtual Task WithUnitOfWorkAsync(Func> func)
- {
- return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func);
- }
-
- protected virtual async Task WithUnitOfWorkAsync(AbpUnitOfWorkOptions options, Func> func)
- {
- using (var scope = ServiceProvider.CreateScope())
- {
- var uowManager = scope.ServiceProvider.GetRequiredService();
-
- using (var uow = uowManager.Begin(options))
- {
- var result = await func();
- await uow.CompleteAsync();
- return result;
- }
- }
- }
- }
-}