Skip to content

Commit 01db9ae

Browse files
committed
✅ add test project
1 parent cbf1559 commit 01db9ae

File tree

57 files changed

+1288
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1288
-27
lines changed

Passingwind.WorkflowApp.sln

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.Web
4343
EndProject
4444
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.DbMigrator", "app\src\Passingwind.WorkflowApp.DbMigrator\Passingwind.WorkflowApp.DbMigrator.csproj", "{18944C79-D798-40C4-9397-47F41B18D2C9}"
4545
EndProject
46+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{93A146E1-E830-4943-A5C3-BC464376C979}"
47+
EndProject
48+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.ElsaExtensionsTests", "test\Passingwind.Abp.ElsaModule.ElsaExtensionsTests\Passingwind.Abp.ElsaModule.ElsaExtensionsTests.csproj", "{781EE124-0BFE-49CA-8953-BD110FB1A88B}"
49+
EndProject
50+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.TestBase", "test\Passingwind.Abp.ElsaModule.TestBase\Passingwind.Abp.ElsaModule.TestBase.csproj", "{80E77C75-03D0-40E3-AB8E-6FA52F3B1CE3}"
51+
EndProject
52+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.Domain.Tests", "test\Passingwind.Abp.ElsaModule.Domain.Tests\Passingwind.Abp.ElsaModule.Domain.Tests.csproj", "{3A07C486-EE64-4F3A-A4B5-EF2EEDDDCC01}"
53+
EndProject
54+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.Application.Tests", "test\Passingwind.Abp.ElsaModule.Application.Tests\Passingwind.Abp.ElsaModule.Application.Tests.csproj", "{AB1E24A7-AC75-4A85-A330-DA5D7369362A}"
55+
EndProject
56+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.MongoDB.Tests", "test\Passingwind.Abp.ElsaModule.MongoDB.Tests\Passingwind.Abp.ElsaModule.MongoDB.Tests.csproj", "{143E15F9-B057-4E38-8305-66C76AD39678}"
57+
EndProject
58+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.HttpApi.Client.ConsoleTestApp", "test\Passingwind.Abp.ElsaModule.HttpApi.Client.ConsoleTestApp\Passingwind.Abp.ElsaModule.HttpApi.Client.ConsoleTestApp.csproj", "{91E8D0B3-0FC1-46DD-9D0E-31CB740CE001}"
59+
EndProject
60+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.EntityFrameworkCore.Tests", "test\Passingwind.Abp.ElsaModule.EntityFrameworkCore.Tests\Passingwind.Abp.ElsaModule.EntityFrameworkCore.Tests.csproj", "{66FA16F1-5D09-450B-986E-E252CB570F72}"
61+
EndProject
4662
Global
4763
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4864
Debug|Any CPU = Debug|Any CPU
@@ -121,6 +137,34 @@ Global
121137
{18944C79-D798-40C4-9397-47F41B18D2C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
122138
{18944C79-D798-40C4-9397-47F41B18D2C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
123139
{18944C79-D798-40C4-9397-47F41B18D2C9}.Release|Any CPU.Build.0 = Release|Any CPU
140+
{781EE124-0BFE-49CA-8953-BD110FB1A88B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
141+
{781EE124-0BFE-49CA-8953-BD110FB1A88B}.Debug|Any CPU.Build.0 = Debug|Any CPU
142+
{781EE124-0BFE-49CA-8953-BD110FB1A88B}.Release|Any CPU.ActiveCfg = Release|Any CPU
143+
{781EE124-0BFE-49CA-8953-BD110FB1A88B}.Release|Any CPU.Build.0 = Release|Any CPU
144+
{80E77C75-03D0-40E3-AB8E-6FA52F3B1CE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
145+
{80E77C75-03D0-40E3-AB8E-6FA52F3B1CE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
146+
{80E77C75-03D0-40E3-AB8E-6FA52F3B1CE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
147+
{80E77C75-03D0-40E3-AB8E-6FA52F3B1CE3}.Release|Any CPU.Build.0 = Release|Any CPU
148+
{3A07C486-EE64-4F3A-A4B5-EF2EEDDDCC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
149+
{3A07C486-EE64-4F3A-A4B5-EF2EEDDDCC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
150+
{3A07C486-EE64-4F3A-A4B5-EF2EEDDDCC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
151+
{3A07C486-EE64-4F3A-A4B5-EF2EEDDDCC01}.Release|Any CPU.Build.0 = Release|Any CPU
152+
{AB1E24A7-AC75-4A85-A330-DA5D7369362A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
153+
{AB1E24A7-AC75-4A85-A330-DA5D7369362A}.Debug|Any CPU.Build.0 = Debug|Any CPU
154+
{AB1E24A7-AC75-4A85-A330-DA5D7369362A}.Release|Any CPU.ActiveCfg = Release|Any CPU
155+
{AB1E24A7-AC75-4A85-A330-DA5D7369362A}.Release|Any CPU.Build.0 = Release|Any CPU
156+
{143E15F9-B057-4E38-8305-66C76AD39678}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
157+
{143E15F9-B057-4E38-8305-66C76AD39678}.Debug|Any CPU.Build.0 = Debug|Any CPU
158+
{143E15F9-B057-4E38-8305-66C76AD39678}.Release|Any CPU.ActiveCfg = Release|Any CPU
159+
{143E15F9-B057-4E38-8305-66C76AD39678}.Release|Any CPU.Build.0 = Release|Any CPU
160+
{91E8D0B3-0FC1-46DD-9D0E-31CB740CE001}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
161+
{91E8D0B3-0FC1-46DD-9D0E-31CB740CE001}.Debug|Any CPU.Build.0 = Debug|Any CPU
162+
{91E8D0B3-0FC1-46DD-9D0E-31CB740CE001}.Release|Any CPU.ActiveCfg = Release|Any CPU
163+
{91E8D0B3-0FC1-46DD-9D0E-31CB740CE001}.Release|Any CPU.Build.0 = Release|Any CPU
164+
{66FA16F1-5D09-450B-986E-E252CB570F72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
165+
{66FA16F1-5D09-450B-986E-E252CB570F72}.Debug|Any CPU.Build.0 = Debug|Any CPU
166+
{66FA16F1-5D09-450B-986E-E252CB570F72}.Release|Any CPU.ActiveCfg = Release|Any CPU
167+
{66FA16F1-5D09-450B-986E-E252CB570F72}.Release|Any CPU.Build.0 = Release|Any CPU
124168
EndGlobalSection
125169
GlobalSection(SolutionProperties) = preSolution
126170
HideSolutionNode = FALSE
@@ -144,6 +188,13 @@ Global
144188
{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
145189
{B00128BF-E5BA-4FF6-953E-9788C10B1277} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
146190
{18944C79-D798-40C4-9397-47F41B18D2C9} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
191+
{781EE124-0BFE-49CA-8953-BD110FB1A88B} = {93A146E1-E830-4943-A5C3-BC464376C979}
192+
{80E77C75-03D0-40E3-AB8E-6FA52F3B1CE3} = {93A146E1-E830-4943-A5C3-BC464376C979}
193+
{3A07C486-EE64-4F3A-A4B5-EF2EEDDDCC01} = {93A146E1-E830-4943-A5C3-BC464376C979}
194+
{AB1E24A7-AC75-4A85-A330-DA5D7369362A} = {93A146E1-E830-4943-A5C3-BC464376C979}
195+
{143E15F9-B057-4E38-8305-66C76AD39678} = {93A146E1-E830-4943-A5C3-BC464376C979}
196+
{91E8D0B3-0FC1-46DD-9D0E-31CB740CE001} = {93A146E1-E830-4943-A5C3-BC464376C979}
197+
{66FA16F1-5D09-450B-986E-E252CB570F72} = {93A146E1-E830-4943-A5C3-BC464376C979}
147198
EndGlobalSection
148199
GlobalSection(ExtensibilityGlobals) = postSolution
149200
SolutionGuid = {28315BFD-90E7-4E14-A2EA-F3D23AF4126F}

app/src/Passingwind.WorkflowApp.Web/WorkflowAppWebModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private static void ConfigureNewtonsoftJsonSerializerSettings(JsonSerializerSett
185185
settings.DefaultValueHandling = DefaultValueHandling.Include;
186186
settings.TypeNameHandling = TypeNameHandling.None;
187187
settings.TypeNameAssemblyFormatHandling = TypeNameAssemblyFormatHandling.Simple;
188-
settings.PreserveReferencesHandling = PreserveReferencesHandling.Objects;
188+
settings.PreserveReferencesHandling = PreserveReferencesHandling.None;
189189
}
190190

191191
private void ConfigureBundles()

src/Passingwind.Abp.ElsaModule.Domain.Shared/Monacos/Providers/MonacoCodeFormatterResult.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Passingwind.Abp.ElsaModule.Domain/Monacos/Providers/IMonacoCodeFormatterProvider.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Passingwind.Abp.ElsaModule;
2+
3+
/* Inherit from this class for your application layer tests.
4+
* See SampleAppService_Tests for example.
5+
*/
6+
public abstract class ElsaModuleApplicationTestBase : ElsaModuleTestBase<ElsaModuleApplicationTestModule>
7+
{
8+
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Volo.Abp.Modularity;
2+
3+
namespace Passingwind.Abp.ElsaModule;
4+
5+
[DependsOn(
6+
typeof(ElsaModuleApplicationModule),
7+
typeof(ElsaModuleDomainTestModule)
8+
)]
9+
public class ElsaModuleApplicationTestModule : AbpModule
10+
{
11+
12+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
2+
<ConfigureAwait ContinueOnCapturedContext="false" />
3+
</Weavers>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3+
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
4+
<xs:element name="Weavers">
5+
<xs:complexType>
6+
<xs:all>
7+
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1">
8+
<xs:complexType>
9+
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" />
10+
</xs:complexType>
11+
</xs:element>
12+
</xs:all>
13+
<xs:attribute name="VerifyAssembly" type="xs:boolean">
14+
<xs:annotation>
15+
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
16+
</xs:annotation>
17+
</xs:attribute>
18+
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
19+
<xs:annotation>
20+
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
21+
</xs:annotation>
22+
</xs:attribute>
23+
<xs:attribute name="GenerateXsd" type="xs:boolean">
24+
<xs:annotation>
25+
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
26+
</xs:annotation>
27+
</xs:attribute>
28+
</xs:complexType>
29+
</xs:element>
30+
</xs:schema>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"role": "lib.test"
3+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<Import Project="..\..\common.props" />
4+
5+
<PropertyGroup>
6+
<TargetFramework>net6.0</TargetFramework>
7+
<RootNamespace>Passingwind.Abp.ElsaModule</RootNamespace>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<ProjectReference Include="..\..\src\Passingwind.Abp.ElsaModule.Application\Passingwind.Abp.ElsaModule.Application.csproj" />
12+
<ProjectReference Include="..\Passingwind.Abp.ElsaModule.Domain.Tests\Passingwind.Abp.ElsaModule.Domain.Tests.csproj" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
14+
</ItemGroup>
15+
16+
</Project>

0 commit comments

Comments
 (0)