public IFullProjectScopedRuleConstructed HasProperty(string propertyName, string propertyValue) { var complementDto = HasPropertyComplement(propertyName, propertyValue); _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullNamespaceBasedRuleConstructed HasNoUsings(string @from, string to) { var complementDto = NoUsingsComplement(from, to); _namespaceBasedRuleDto = NamespaceBasedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullProjectScopedRuleConstructed HasTargetFramework(string targetFramework) { var complementDto = HasTargetFrameworkRuleComplement(targetFramework); _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullNamespaceBasedRuleConstructed HasNoCircularUsings() { var complementDto = NoCircularUsingsRuleComplement(); _namespaceBasedRuleDto = NamespaceBasedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullProjectScopedRuleConstructed HasCorrectNamespaces() { var complementDto = CorrectNamespacesRuleComplement(); _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullDependencyPathRuleConstructed IndependentOfAssembly(string assemblyName) { var complementDto = IndependentRuleComplement("assembly", assemblyName); _dependencyPathRuleDto = DependencyPathBasedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullDependencyPathRuleConstructed IndependentOfPackage(string packageName) { var complementDto = IndependentRuleComplement("package", packageName); _dependencyPathRuleDto = DependencyPathBasedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }
public IFullProjectScopedRuleConstructed HasDecoratedMethods(string classInclusionPattern, string methodInclusionPattern) { var complementDto = HasAttributesOnRuleComplement( classInclusionPattern, methodInclusionPattern); _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto); _testedRuleDefinition = TestedRuleDefinition.From(complementDto); return(this); }