コード例 #1
0
        public static GivenMethodMembers MethodMembers()
        {
            var ruleCreator =
                new ArchRuleCreator <MethodMember>(BasicObjectProviderDefinition.MethodMembers);

            return(new GivenMethodMembers(ruleCreator));
        }
コード例 #2
0
        public static GivenPropertyMembers PropertyMembers()
        {
            var ruleCreator =
                new ArchRuleCreator <PropertyMember>(BasicObjectProviderDefinition.PropertyMembers);

            return(new GivenPropertyMembers(ruleCreator));
        }
コード例 #3
0
 public CombinedArchRuleCreator(ICanBeEvaluated oldRule, LogicalConjunction logicalConjunction,
                                BasicObjectProvider <TRuleType> basicObjectProvider)
 {
     _oldRule                = oldRule;
     _logicalConjunction     = logicalConjunction;
     _currentArchRuleCreator = new ArchRuleCreator <TRuleType>(basicObjectProvider);
 }
コード例 #4
0
 private bool Equals(ArchRuleCreator <TRuleType> other)
 {
     return(_conditionManager.Equals(other._conditionManager) &&
            _predicateManager.Equals(other._predicateManager));
 }
コード例 #5
0
        public static GivenInterfaces Interfaces()
        {
            var ruleCreator = new ArchRuleCreator <Interface>(BasicObjectProviderDefinition.Interfaces);

            return(new GivenInterfaces(ruleCreator));
        }
コード例 #6
0
        public static GivenClasses Classes()
        {
            var ruleCreator = new ArchRuleCreator <Class>(BasicObjectProviderDefinition.Classes);

            return(new GivenClasses(ruleCreator));
        }
コード例 #7
0
        public static GivenAttributes Attributes()
        {
            var ruleCreator = new ArchRuleCreator <Attribute>(BasicObjectProviderDefinition.Attributes);

            return(new GivenAttributes(ruleCreator));
        }
コード例 #8
0
        public static GivenTypes Types()
        {
            var ruleCreator = new ArchRuleCreator <IType>(BasicObjectProviderDefinition.Types);

            return(new GivenTypes(ruleCreator));
        }