elsa-core/test/integration/Elsa.Bpmn.Interchange.IntegrationTests/BpmnInterchangeFeatureTests.cs
Sipke Schoorstra 735e953dc5
feat(bpmn): scaffold Elsa.Bpmn and Elsa.Bpmn.Interchange modules (#7938)
Adds the valence-works/bpmn package feed and pins Bpmn.Model,
Bpmn.Semantics and Bpmn.Interchange at 0.1.1-preview.19, then wires
two new module projects consuming those libraries without
reimplementing anything they provide (D12): Elsa.Bpmn for BPMN
execution and Elsa.Bpmn.Interchange for XML import/export, kept as a
separate package so hosts that only execute BPMN don't take the XML
reader. Both are marked IsPackable=false until the Bpmn.* packages
are published to nuget.org. Test projects are added for both, unit
and integration, and all four are wired into Elsa.sln so PR CI
discovers and runs them. This unblocks #7925 and the rest of the
BPMN runtime work in #7909.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 01:17:46 +02:00

31 lines
898 B
C#

using Elsa.Extensions;
using Elsa.Features.Contracts;
using Elsa.Testing.Shared;
using Microsoft.Extensions.DependencyInjection;
using Xunit.Abstractions;
namespace Elsa.Bpmn.Interchange.IntegrationTests;
public class BpmnInterchangeFeatureTests
{
private readonly ITestOutputHelper _testOutputHelper;
public BpmnInterchangeFeatureTests(ITestOutputHelper testOutputHelper)
{
_testOutputHelper = testOutputHelper;
}
[Fact]
public void Build_WithUseBpmnInterchange_RegistersBpmnInterchangeFeature()
{
var services = new TestApplicationBuilder(_testOutputHelper)
.ConfigureElsa(elsa => elsa.UseBpmnInterchange())
.Build();
var registry = services.GetRequiredService<IInstalledFeatureRegistry>();
Assert.NotNull(registry.Find("Elsa.Bpmn"));
Assert.NotNull(registry.Find("Elsa.BpmnInterchange"));
}
}