Skip to content

Missing method ImplementInterfaceMatching #389

@andre-amagno

Description

@andre-amagno

Since version 0.12.1 I have the following warning.

CS0618: Method 'ArchUnitNET.Fluent.Syntax.Elements.Types.TypesShould<TRuleTypeShouldConjunction,TRuleType>.ImplementInterface(string, bool)' is obsolete: 'Another overload of this method should be used. This will be removed in a future update.'
The cause is of course clear. But the question is, which function can I use to check it now? Will there be a method “ImplementInterfaceMatching” in a future version?

My code looks like this:

[Test]
public void RequestHandlers_ShouldImplementInterfaceWithNameRequestHandler()
{
       IArchRule rule = Classes()
           .That()
           .Are(_requestHandlers)
           .Should()
           .ImplementInterface(".*RequestHandler", true);

       rule.Check(MyArchitecture);
}

Many thanks in advance!

Metadata

Metadata

Labels

kind/featureCategorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions