Skip to content

[Enhancement]: Refactor Testcontainers.Xunit module #1598

@digital88

Description

@digital88

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 InternalsVisibleTo attribute 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions