-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Milestone
Description
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
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.