コード例 #1
0
ファイル: TypesShould.cs プロジェクト: fgather/ArchUnitNET-1
 public TRuleTypeShouldConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.AddCondition(
         TypeConditionsDefinition <TRuleType> .ImplementInterface(intf));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
コード例 #2
0
ファイル: TypesShould.cs プロジェクト: fgather/ArchUnitNET-1
 public TRuleTypeShouldConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         TypeConditionsDefinition <TRuleType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }