[Enhancement]: Refactor Testcontainers.Xunit module
Problem
As per PR the default parameterless Builder constuctor is deprecated. This line in Testcontainers.Xunit module should be refactored to create instances of Builders using new constructor.
See alse comment.
Solution
- Use factory or delegate to create builders
- Use
InternalsVisibleToattribute and make default constructor internal instead of deleting it later - Use reflection to create builders
- Something else
Benefit
The working Testcontainers.Xunit module without calling deprecated constructors.
Alternatives
Keep deprecated constructors for some time.
Would you like to help contributing this enhancement?
Yes
@0xced FYI: Testcontainers for .NET (like the other language implementations) expects developers to configure and pin the image in future releases (no more default image: https://github.com/testcontainers/testcontainers-dotnet/discussions/1470).
Thanks for the heads up, Andre. I'll share some thoughts about how we can transition the Testcontainers.Xunit modules to this new approach, hopefully by the end of 2025. Please ping me in 2026 if I don't get around.