mirror of https://github.com/abpframework/eventhub
7 changed files with 99 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait ContinueOnCapturedContext="false" /> |
|||
</Weavers> |
|||
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
|||
<xs:element name="Weavers"> |
|||
<xs:complexType> |
|||
<xs:all> |
|||
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
|||
<xs:complexType> |
|||
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:all> |
|||
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
|||
<xs:annotation> |
|||
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:schema> |
|||
@ -0,0 +1,15 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net6.0</TargetFramework> |
|||
<RootNamespace /> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\src\Payment.Admin.Application\Payment.Admin.Application.csproj" /> |
|||
<ProjectReference Include="..\Payment.Domain.Tests\Payment.Domain.Tests.csproj" /> |
|||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" /> |
|||
</ItemGroup> |
|||
</Project> |
|||
@ -0,0 +1,7 @@ |
|||
namespace Payment.Admin.Application.Tests |
|||
{ |
|||
public abstract class PaymentAdminApplicationTestBase : PaymentTestBase<PaymentAdminApplicationTestModule> |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Payment.Admin.Application.Tests |
|||
{ |
|||
[DependsOn( |
|||
typeof(PaymentDomainTestModule), |
|||
typeof(PaymentAdminApplicationModule) |
|||
)] |
|||
public class PaymentAdminApplicationTestModule : AbpModule |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -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<IPaymentRequestAdminAppService>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task GetListAsync() |
|||
{ |
|||
var paymentRequests = await _paymentRequestAdminAppService.GetListAsync(new PaymentRequestGetListInput()); |
|||
paymentRequests.Items.ShouldNotBeNull(); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue