diff --git a/modules/payment/Payment.sln b/modules/payment/Payment.sln index fd7efd9..d9c494e 100644 --- a/modules/payment/Payment.sln +++ b/modules/payment/Payment.sln @@ -55,6 +55,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Payment.Admin.HttpApi.Clien EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Payment.Admin.Blazor", "src\Payment.Admin.Blazor\Payment.Admin.Blazor.csproj", "{7C6D6C96-0816-43F3-81C8-44CBC18434DE}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Payment.Admin.Application.Tests", "test\Payment.Admin.Application.Tests\Payment.Admin.Application.Tests.csproj", "{E31DBDFE-1CC7-4E1B-B65C-C3810BF85981}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -133,6 +135,10 @@ Global {7C6D6C96-0816-43F3-81C8-44CBC18434DE}.Debug|Any CPU.Build.0 = Debug|Any CPU {7C6D6C96-0816-43F3-81C8-44CBC18434DE}.Release|Any CPU.ActiveCfg = Release|Any CPU {7C6D6C96-0816-43F3-81C8-44CBC18434DE}.Release|Any CPU.Build.0 = Release|Any CPU + {E31DBDFE-1CC7-4E1B-B65C-C3810BF85981}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E31DBDFE-1CC7-4E1B-B65C-C3810BF85981}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E31DBDFE-1CC7-4E1B-B65C-C3810BF85981}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E31DBDFE-1CC7-4E1B-B65C-C3810BF85981}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -162,6 +168,7 @@ Global {046100DA-71ED-43C5-8C33-D424D678DBEA} = {5B39D229-146D-423E-9E50-91471851824E} {A791943D-3F0B-41E3-AE73-15A60180B4A5} = {5B39D229-146D-423E-9E50-91471851824E} {7C6D6C96-0816-43F3-81C8-44CBC18434DE} = {5B39D229-146D-423E-9E50-91471851824E} + {E31DBDFE-1CC7-4E1B-B65C-C3810BF85981} = {FC718EF0-43EB-4767-9578-95FA0B3727A5} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {6AAFA1C6-603E-13FA-45E5-7910AA9F661D} diff --git a/modules/payment/test/Payment.Admin.Application.Tests/FodyWeavers.xml b/modules/payment/test/Payment.Admin.Application.Tests/FodyWeavers.xml new file mode 100644 index 0000000..be0de3a --- /dev/null +++ b/modules/payment/test/Payment.Admin.Application.Tests/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/modules/payment/test/Payment.Admin.Application.Tests/FodyWeavers.xsd b/modules/payment/test/Payment.Admin.Application.Tests/FodyWeavers.xsd new file mode 100644 index 0000000..3f3946e --- /dev/null +++ b/modules/payment/test/Payment.Admin.Application.Tests/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + '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/payment/test/Payment.Admin.Application.Tests/Payment.Admin.Application.Tests.csproj b/modules/payment/test/Payment.Admin.Application.Tests/Payment.Admin.Application.Tests.csproj new file mode 100644 index 0000000..75350f8 --- /dev/null +++ b/modules/payment/test/Payment.Admin.Application.Tests/Payment.Admin.Application.Tests.csproj @@ -0,0 +1,15 @@ + + + + + + net6.0 + + + + + + + + + diff --git a/modules/payment/test/Payment.Admin.Application.Tests/PaymentAdminApplicationTestBase.cs b/modules/payment/test/Payment.Admin.Application.Tests/PaymentAdminApplicationTestBase.cs new file mode 100644 index 0000000..9e363d5 --- /dev/null +++ b/modules/payment/test/Payment.Admin.Application.Tests/PaymentAdminApplicationTestBase.cs @@ -0,0 +1,7 @@ +namespace Payment.Admin.Application.Tests +{ + public abstract class PaymentAdminApplicationTestBase : PaymentTestBase + { + + } +} \ No newline at end of file diff --git a/modules/payment/test/Payment.Admin.Application.Tests/PaymentAdminApplicationTestModule.cs b/modules/payment/test/Payment.Admin.Application.Tests/PaymentAdminApplicationTestModule.cs new file mode 100644 index 0000000..8c72d36 --- /dev/null +++ b/modules/payment/test/Payment.Admin.Application.Tests/PaymentAdminApplicationTestModule.cs @@ -0,0 +1,13 @@ +using Volo.Abp.Modularity; + +namespace Payment.Admin.Application.Tests +{ + [DependsOn( + typeof(PaymentDomainTestModule), + typeof(PaymentAdminApplicationModule) + )] + public class PaymentAdminApplicationTestModule : AbpModule + { + + } +} \ No newline at end of file diff --git a/modules/payment/test/Payment.Admin.Application.Tests/PaymentRequests/PaymentRequestAdminAppService_Tests.cs b/modules/payment/test/Payment.Admin.Application.Tests/PaymentRequests/PaymentRequestAdminAppService_Tests.cs new file mode 100644 index 0000000..4f289fd --- /dev/null +++ b/modules/payment/test/Payment.Admin.Application.Tests/PaymentRequests/PaymentRequestAdminAppService_Tests.cs @@ -0,0 +1,24 @@ +using System.Threading.Tasks; +using Payment.Admin.Payments; +using Shouldly; +using Xunit; + +namespace Payment.Admin.Application.Tests.PaymentRequests +{ + public class PaymentRequestAdminAppService_Tests : PaymentAdminApplicationTestBase + { + private readonly IPaymentRequestAdminAppService _paymentRequestAdminAppService; + + public PaymentRequestAdminAppService_Tests() + { + _paymentRequestAdminAppService = GetRequiredService(); + } + + [Fact] + public async Task GetListAsync() + { + var paymentRequests = await _paymentRequestAdminAppService.GetListAsync(new PaymentRequestGetListInput()); + paymentRequests.Items.ShouldNotBeNull(); + } + } +} \ No newline at end of file