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!