Skip to content

Remove obsolete RegisterComponents usage from acceptance test#736

Merged
danielmarbach merged 9 commits into
masterfrom
update-nservicebus-packages-10.2.0-alpha
May 13, 2026
Merged

Remove obsolete RegisterComponents usage from acceptance test#736
danielmarbach merged 9 commits into
masterfrom
update-nservicebus-packages-10.2.0-alpha

Conversation

@particularbot
Copy link
Copy Markdown
Contributor

@particularbot particularbot commented May 7, 2026

This PR is re-scoped to release-prep changes ahead of the next Core 10.2 release.

What changed

  • Migrated acceptance test infrastructure to NServiceBus.AcceptanceTests.Sources so endpoint templates and shared acceptance harness code are consumed from package sources.
  • Added acceptance test source wiring in the test project (GeneratePathProperty + Compile includes from package contentFiles).
  • Added GlobalUsings and TestSuiteConstraints for the sources-based acceptance test model.
  • Removed repo-local acceptance infrastructure copies:
    - DefaultServer
    - NServiceBusAcceptanceTest
  • This also removes the obsolete RegisterComponents(...) / runDescriptor.ScenarioContext registration path as part of the migration.

Files changed

  • src/AcceptanceTests/NServiceBus.Encryption.MessageProperty.AcceptanceTests.csproj
  • src/AcceptanceTests/GlobalUsings.cs (new)
  • src/AcceptanceTests/TestSuiteConstraints.cs (new)
  • src/AcceptanceTests/Infrastructure/DefaultServer.cs (removed)
  • src/AcceptanceTests/Infrastructure/NServiceBusAcceptanceTest.cs (removed)

…erviceBus.Encryption.MessageProperty.AcceptanceTests.csproj)
…erviceBus.Encryption.MessageProperty.csproj)
@mattmercurio mattmercurio self-assigned this May 11, 2026
…perty/NServiceBus.Encryption.MessageProperty.csproj)"

This reverts commit afa1d7e.
…Tests/NServiceBus.Encryption.MessageProperty.AcceptanceTests.csproj)"

This reverts commit 1e3c2b6.
@mattmercurio mattmercurio changed the title Update NServiceBus packages to 10.2.0-alpha.8 Remove obsolete RegisterComponents usage from acceptance DefaultServer May 11, 2026
@mattmercurio mattmercurio changed the title Remove obsolete RegisterComponents usage from acceptance DefaultServer Remove obsolete RegisterComponents usage from acceptance test May 11, 2026
@mattmercurio mattmercurio marked this pull request as ready for review May 11, 2026 20:37
danielmarbach
danielmarbach previously approved these changes May 11, 2026
@mattmercurio mattmercurio requested a review from DavidBoike May 12, 2026 20:53

<ItemGroup Condition="'$(PkgNServiceBus_AcceptanceTests_Sources)' != ''">
<Compile Remove="$(PkgNServiceBus_AcceptanceTests_Sources)\contentFiles\cs\$(TargetFramework)\**\*.cs" />
<Compile Include="$(PkgNServiceBus_AcceptanceTests_Sources)\contentFiles\cs\$(TargetFramework)\**\*.cs" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition makes no sense. Remove everything and the include everything?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master
image
this change
image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now
image

@danielmarbach danielmarbach enabled auto-merge (squash) May 13, 2026 06:14
@danielmarbach danielmarbach merged commit e6a57ea into master May 13, 2026
4 checks passed
@danielmarbach danielmarbach deleted the update-nservicebus-packages-10.2.0-alpha branch May 13, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants