Skip to content

[Feature]: Have*-Functions with overload #471

Closed

Description

@IkarusSoft

Description

It would be nice to have more than one Parameter, please provide an params-List.

For example:

        IArchRule dataAdapterNamespace = Types()
            .That()
            .Are(DataAdapter)
            .Should()
            .HaveAssemblyQualifiedNameStartingWith("SettingsService.Infrastructure.Data", "SettingsService.BVer", "SettingsService.MdlContentService);

Use Case(s)

No response

Activity

  1. added
    kind/featureCategorizes issue or PR as related to a new feature.
    needs-triageIndicates that an issue needs to be categorized.
    on Aug 14, 2026
  2. mak638 commented on Aug 14, 2026

    @mak638
    Collaborator

    Hi @IkarusSoft,
    thank you very much for your suggestion. We think that a params list as suggested would be ambiguous since it would not be clear just from the written rule if DataAdapter would need to fulfill just any of the provided patterns or all of them. Instead we would recommend using a regex and HaveAssemblyQualifiedNameMatching in your case:

    IArchRule dataAdapterNamespace = Types()
      .That()
      .Are(DataAdapter)
      .Should()
      .HaveAssemblyQualifiedNameMatching("SettingsService\.Infrastructure\.Data.*|SettingsService\.BVer.*|SettingsService\.MdlContentService.*");
    
  3. added
    triage/wont-fixIndicates an issue that can not or will not be resolved.
    and removed
    needs-triageIndicates that an issue needs to be categorized.
    on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.triage/wont-fixIndicates an issue that can not or will not be resolved.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions