示例#1
0
        public IFullProjectScopedRuleConstructed HasProperty(string propertyName, string propertyValue)
        {
            var complementDto = HasPropertyComplement(propertyName, propertyValue);

            _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto);
            _testedRuleDefinition = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#2
0
        public IFullNamespaceBasedRuleConstructed HasNoUsings(string @from, string to)
        {
            var complementDto = NoUsingsComplement(from, to);

            _namespaceBasedRuleDto = NamespaceBasedRuleUnionDto.With(complementDto);
            _testedRuleDefinition  = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#3
0
        public IFullProjectScopedRuleConstructed HasTargetFramework(string targetFramework)
        {
            var complementDto = HasTargetFrameworkRuleComplement(targetFramework);

            _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto);
            _testedRuleDefinition = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#4
0
        public IFullNamespaceBasedRuleConstructed HasNoCircularUsings()
        {
            var complementDto = NoCircularUsingsRuleComplement();

            _namespaceBasedRuleDto = NamespaceBasedRuleUnionDto.With(complementDto);
            _testedRuleDefinition  = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#5
0
        public IFullProjectScopedRuleConstructed HasCorrectNamespaces()
        {
            var complementDto = CorrectNamespacesRuleComplement();

            _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto);
            _testedRuleDefinition = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#6
0
        public IFullDependencyPathRuleConstructed IndependentOfAssembly(string assemblyName)
        {
            var complementDto = IndependentRuleComplement("assembly", assemblyName);

            _dependencyPathRuleDto =
                DependencyPathBasedRuleUnionDto.With(complementDto);
            _testedRuleDefinition = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#7
0
        public IFullDependencyPathRuleConstructed IndependentOfPackage(string packageName)
        {
            var complementDto = IndependentRuleComplement("package", packageName);

            _dependencyPathRuleDto =
                DependencyPathBasedRuleUnionDto.With(complementDto);
            _testedRuleDefinition = TestedRuleDefinition.From(complementDto);
            return(this);
        }
示例#8
0
        public IFullProjectScopedRuleConstructed HasDecoratedMethods(string classInclusionPattern, string methodInclusionPattern)
        {
            var complementDto = HasAttributesOnRuleComplement(
                classInclusionPattern,
                methodInclusionPattern);

            _projectScopedRuleDto = ProjectScopedRuleUnionDto.With(complementDto);
            _testedRuleDefinition = TestedRuleDefinition.From(complementDto);
            return(this);
        }