We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to make sure that Application Services don't call other Application Services and call DomainServices instead.
private IObjectProvider<Class> AppServices = Classes().That().HaveName(@"\S+AppService", true); //... Classes().That().Are(AppServices).Should().NotCallAny( MethodMembers().That().AreDeclaredIn(AppServices) );
However, code like this violates this rule
public class MyAppService { public void Smth(){} public void SmthElse() { Smth(); } }
Is there a way to exclude "self" from the rule? If not, is there any other workaround?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to make sure that Application Services don't call other Application Services and call DomainServices instead.
However, code like this violates this rule
Is there a way to exclude "self" from the rule? If not, is there any other workaround?
The text was updated successfully, but these errors were encountered: