-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
I would like strings to be auto-generated in case I have not overridden them.
Currently to achieve this I need to copy this extension method:
and write my own helper methods that generate strings like:
Types in current domain that reside in namespace 'NetArchTest.SampleLibrary.Presentation' should not have dependency on 'NetArchTest.SampleLibrary.Data'.
from code like:
var architecturePolicy = Policy.Define("Example Policy", "This is an example policy")
.For(Types.InCurrentDomain)
.Add(t =>
t.That()
.ResideInNamespace("NetArchTest.SampleLibrary.Presentation")
.ShouldNot()
.HaveDependencyOn("NetArchTest.SampleLibrary.Data"),
"Enforcing layered architecture", "Controllers should not directly reference repositories"
);and use those as rule names / descriptions.
Metadata
Metadata
Assignees
Labels
No labels