Skip to content

Commit 501bbd8

Browse files
committed
Remove Dependencies: Refactor Unit Testing Module: Update Project References and Template Logic
- Updated `Intent.Modules.UnitTesting.application.output.config.xml` to ignore specific project files and added notes for clarity. - Cleaned up `Intent.Modules.UnitTesting.application.output.log` by removing unnecessary file logs and marking relevant files as ignored. - Removed outdated package references from `Intent.Modules.UnitTesting.csproj`. - Updated `Intent.UnitTesting.imodspec` to remove deprecated dependencies. - Introduced `SpecializationTypeIds.cs` to centralize specialization type IDs for better maintainability. - Refactored command and domain event handler test templates to use `IElement` instead of specific model types, improving flexibility. - Created `ElementExtensions.cs` to provide generic extension methods for `IElement`, enhancing code reusability. - Updated test helper methods to work with the new `IElement` model and improved logic for determining test details. - Removed redundant template extension methods that were specific to certain models, streamlining the codebase.
1 parent f1c37b1 commit 501bbd8

32 files changed

+227
-536
lines changed

Modules/Intent.Modules.UnitTesting/Api/CommandModelStereotypeExtensions.cs

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

Modules/Intent.Modules.UnitTesting/Api/DomainEventHandlerModelStereotypeExtensions.cs

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

Modules/Intent.Modules.UnitTesting/Api/IntegrationEventHandlerModelStereotypeExtensions.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Intent.UnitTesting.Api
2+
{
3+
}
4+
5+
namespace Intent.Modelers.Services.Api
6+
{
7+
}

Modules/Intent.Modules.UnitTesting/Api/OperationModelStereotypeExtensions.cs

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

Modules/Intent.Modules.UnitTesting/Api/QueryModelStereotypeExtensions.cs

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

Modules/Intent.Modules.UnitTesting/Api/ServiceModelStereotypeExtensions.cs

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

Modules/Intent.Modules.UnitTesting/Intent.Metadata/Module Builder/Intent.UnitTesting/Elements/C# Template/CommandHandlerTest__5rsg7ctg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<properties>
3636
<property name="a9de6cf5-6d4f-4ae1-aa60-5ca85e458709" display="Source" value="Lookup Type" isActive="true" />
3737
<property name="00d3537c-f71f-4450-8cc8-d9e87c12baee" display="Designer" value="81104ae6-2bc5-4bae-b05a-f987b0372d81" isActive="true" />
38-
<property name="75b89367-1808-43f8-9f18-785915ec1630" display="Model Type" value="ccf14eb6-3a55-4d81-b5b9-d27311c70cb9" isActive="true" />
38+
<property name="75b89367-1808-43f8-9f18-785915ec1630" display="Model Type" value="0bbe00c4-0f48-4978-b3c4-f510e4136768" isActive="true" />
3939
<property name="d1e89313-0647-48bd-81da-b04b644db475" display="Model Name" value="object" isActive="false" />
4040
<property name="f1d88e59-1ca6-426e-b52d-42f3467e6bd5" display="Role" value="UnitTests.Tests" isActive="true" />
4141
<property name="1ac0fa39-ecea-48f8-92e4-41616a639586" display="Default Location" isActive="true" />

Modules/Intent.Modules.UnitTesting/Intent.Metadata/Module Builder/Intent.UnitTesting/Elements/C# Template/DomainEventHandlerTest__dv461qwt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<properties>
3636
<property name="a9de6cf5-6d4f-4ae1-aa60-5ca85e458709" display="Source" value="Lookup Type" isActive="true" />
3737
<property name="00d3537c-f71f-4450-8cc8-d9e87c12baee" display="Designer" value="81104ae6-2bc5-4bae-b05a-f987b0372d81" isActive="true" />
38-
<property name="75b89367-1808-43f8-9f18-785915ec1630" display="Model Type" value="d80e61c5-7e4c-4175-9df1-0413f664824c" isActive="true" />
38+
<property name="75b89367-1808-43f8-9f18-785915ec1630" display="Model Type" value="0bbe00c4-0f48-4978-b3c4-f510e4136768" isActive="true" />
3939
<property name="d1e89313-0647-48bd-81da-b04b644db475" display="Model Name" value="object" isActive="false" />
4040
<property name="f1d88e59-1ca6-426e-b52d-42f3467e6bd5" display="Role" value="UnitTests.Tests" isActive="true" />
4141
<property name="1ac0fa39-ecea-48f8-92e4-41616a639586" display="Default Location" isActive="true" />

Modules/Intent.Modules.UnitTesting/Intent.Metadata/Module Builder/Intent.UnitTesting/Elements/C# Template/IntegrationEventHandlerTest__d08sdbpt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<properties>
3636
<property name="a9de6cf5-6d4f-4ae1-aa60-5ca85e458709" display="Source" value="Lookup Type" isActive="true" />
3737
<property name="00d3537c-f71f-4450-8cc8-d9e87c12baee" display="Designer" value="81104ae6-2bc5-4bae-b05a-f987b0372d81" isActive="true" />
38-
<property name="75b89367-1808-43f8-9f18-785915ec1630" display="Model Type" value="c0582230-22f5-4f74-8eb0-ec6fc9364900" isActive="true" />
38+
<property name="75b89367-1808-43f8-9f18-785915ec1630" display="Model Type" value="0bbe00c4-0f48-4978-b3c4-f510e4136768" isActive="true" />
3939
<property name="d1e89313-0647-48bd-81da-b04b644db475" display="Model Name" value="object" isActive="false" />
4040
<property name="f1d88e59-1ca6-426e-b52d-42f3467e6bd5" display="Role" value="UnitTests.Tests" isActive="true" />
4141
<property name="1ac0fa39-ecea-48f8-92e4-41616a639586" display="Default Location" isActive="true" />

0 commit comments

Comments
 (0)