Skip to content

feat: adopt AndreGoepel.Marten.Testing - #160

Merged
andregoepel merged 1 commit into
mainfrom
feature/adopt-marten-testing
Jul 26, 2026
Merged

feat: adopt AndreGoepel.Marten.Testing#160
andregoepel merged 1 commit into
mainfrom
feature/adopt-marten-testing

Conversation

@andregoepel

Copy link
Copy Markdown
Owner

Summary

Replaces the container-lifecycle code in MartenFixture.cs with the newly published AndreGoepel.Marten.Testing 1.0.0, using its documented extensibility hooks:

  • ConfigureStoreInitializeIdentity()
  • OnStoreInitializedAsync → resolves ISettingsStore through the public AddMartenConfiguration() DI registration
  • ResetAsync override → base.ResetAsync + DeleteAllEventDataAsync

IntegrationCollection.cs needed no changes — per the package's documented pattern, each consumer keeps its own [CollectionDefinition] bound to its own fixture subclass. Removed the now-unused direct Testcontainers.PostgreSql reference.

Verification

  • dotnet csharpier format . clean
  • dotnet build — 0 warnings, 0 errors
  • dotnet test — 92/92 integration tests passing against real Testcontainers Postgres
  • dotnet list package --vulnerable --include-transitive — clean

Closes #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt AndreGoepel.Marten.Testing (plan E3 adoption)

1 participant