Skip to content

Commit bcc8a02

Browse files
Rename Generic Parameters
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
1 parent 3c04b49 commit bcc8a02

20 files changed

Lines changed: 933 additions & 933 deletions

ArchUnitNET/Fluent/Syntax/Elements/AddObjectCondition.cs

Lines changed: 155 additions & 155 deletions
Large diffs are not rendered by default.

ArchUnitNET/Fluent/Syntax/Elements/AddObjectPredicate.cs

Lines changed: 139 additions & 139 deletions
Large diffs are not rendered by default.

ArchUnitNET/Fluent/Syntax/Elements/IAddObjectCondition.cs

Lines changed: 147 additions & 147 deletions
Large diffs are not rendered by default.

ArchUnitNET/Fluent/Syntax/Elements/IAddObjectPredicate.cs

Lines changed: 136 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -6,149 +6,149 @@
66

77
namespace ArchUnitNET.Fluent.Syntax.Elements
88
{
9-
public interface IAddObjectPredicate<out TReturnType, TRuleType>
9+
public interface IAddObjectPredicate<out TNextElement, TRuleType>
1010
where TRuleType : ICanBeAnalyzed
1111
{
1212
// csharpier-ignore-start
1313

14-
TReturnType FollowCustomPredicate(IPredicate<TRuleType> predicate);
15-
TReturnType FollowCustomPredicate(Func<TRuleType, bool> predicate, string description);
16-
17-
TReturnType Are(params ICanBeAnalyzed[] objects);
18-
TReturnType Are(IEnumerable<ICanBeAnalyzed> objects);
19-
TReturnType Are(IObjectProvider<ICanBeAnalyzed> objects);
20-
21-
TReturnType CallAny(params MethodMember[] methods);
22-
TReturnType CallAny(IEnumerable<MethodMember> methods);
23-
TReturnType CallAny(IObjectProvider<MethodMember> methods);
24-
25-
TReturnType DependOnAny();
26-
TReturnType DependOnAny(params IType[] types);
27-
TReturnType DependOnAny(params Type[] types);
28-
TReturnType DependOnAny(IEnumerable<IType> types);
29-
TReturnType DependOnAny(IEnumerable<Type> types);
30-
TReturnType DependOnAny(IObjectProvider<IType> types);
31-
32-
TReturnType OnlyDependOn();
33-
TReturnType OnlyDependOn(params IType[] types);
34-
TReturnType OnlyDependOn(params Type[] types);
35-
TReturnType OnlyDependOn(IEnumerable<IType> types);
36-
TReturnType OnlyDependOn(IEnumerable<Type> types);
37-
TReturnType OnlyDependOn(IObjectProvider<IType> types);
38-
39-
TReturnType HaveAnyAttributes();
40-
TReturnType HaveAnyAttributes(params Attribute[] attributes);
41-
TReturnType HaveAnyAttributes(params Type[] attributes);
42-
TReturnType HaveAnyAttributes(IEnumerable<Attribute> attributes);
43-
TReturnType HaveAnyAttributes(IEnumerable<Type> attributes);
44-
TReturnType HaveAnyAttributes(IObjectProvider<Attribute> attributes);
45-
46-
TReturnType OnlyHaveAttributes();
47-
TReturnType OnlyHaveAttributes(params Attribute[] attributes);
48-
TReturnType OnlyHaveAttributes(params Type[] attributes);
49-
TReturnType OnlyHaveAttributes(IEnumerable<Attribute> attributes);
50-
TReturnType OnlyHaveAttributes(IEnumerable<Type> attributes);
51-
TReturnType OnlyHaveAttributes(IObjectProvider<Attribute> attributes);
52-
53-
TReturnType HaveAnyAttributesWithArguments(IEnumerable<object> argumentValues);
54-
55-
TReturnType HaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues);
56-
TReturnType HaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues);
57-
58-
TReturnType HaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments);
59-
TReturnType HaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments);
60-
61-
TReturnType HaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments);
62-
TReturnType HaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments);
63-
TReturnType HaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments);
64-
TReturnType HaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments);
65-
66-
TReturnType HaveName(string name);
67-
TReturnType HaveNameMatching(string pattern);
68-
TReturnType HaveNameStartingWith(string pattern);
69-
TReturnType HaveNameEndingWith(string pattern);
70-
TReturnType HaveNameContaining(string pattern);
71-
72-
TReturnType HaveFullName(string fullName);
73-
TReturnType HaveFullNameMatching(string pattern);
74-
TReturnType HaveFullNameStartingWith(string pattern);
75-
TReturnType HaveFullNameEndingWith(string pattern);
76-
TReturnType HaveFullNameContaining(string pattern);
77-
78-
TReturnType HaveAssemblyQualifiedName(string assemblyQualifiedName);
79-
TReturnType HaveAssemblyQualifiedNameMatching(string pattern);
80-
TReturnType HaveAssemblyQualifiedNameStartingWith(string pattern);
81-
TReturnType HaveAssemblyQualifiedNameEndingWith(string pattern);
82-
TReturnType HaveAssemblyQualifiedNameContaining(string pattern);
83-
84-
TReturnType ArePrivate();
85-
TReturnType ArePublic();
86-
TReturnType AreProtected();
87-
TReturnType AreInternal();
88-
TReturnType AreProtectedInternal();
89-
TReturnType ArePrivateProtected();
14+
TNextElement FollowCustomPredicate(IPredicate<TRuleType> predicate);
15+
TNextElement FollowCustomPredicate(Func<TRuleType, bool> predicate, string description);
16+
17+
TNextElement Are(params ICanBeAnalyzed[] objects);
18+
TNextElement Are(IEnumerable<ICanBeAnalyzed> objects);
19+
TNextElement Are(IObjectProvider<ICanBeAnalyzed> objects);
20+
21+
TNextElement CallAny(params MethodMember[] methods);
22+
TNextElement CallAny(IEnumerable<MethodMember> methods);
23+
TNextElement CallAny(IObjectProvider<MethodMember> methods);
24+
25+
TNextElement DependOnAny();
26+
TNextElement DependOnAny(params IType[] types);
27+
TNextElement DependOnAny(params Type[] types);
28+
TNextElement DependOnAny(IEnumerable<IType> types);
29+
TNextElement DependOnAny(IEnumerable<Type> types);
30+
TNextElement DependOnAny(IObjectProvider<IType> types);
31+
32+
TNextElement OnlyDependOn();
33+
TNextElement OnlyDependOn(params IType[] types);
34+
TNextElement OnlyDependOn(params Type[] types);
35+
TNextElement OnlyDependOn(IEnumerable<IType> types);
36+
TNextElement OnlyDependOn(IEnumerable<Type> types);
37+
TNextElement OnlyDependOn(IObjectProvider<IType> types);
38+
39+
TNextElement HaveAnyAttributes();
40+
TNextElement HaveAnyAttributes(params Attribute[] attributes);
41+
TNextElement HaveAnyAttributes(params Type[] attributes);
42+
TNextElement HaveAnyAttributes(IEnumerable<Attribute> attributes);
43+
TNextElement HaveAnyAttributes(IEnumerable<Type> attributes);
44+
TNextElement HaveAnyAttributes(IObjectProvider<Attribute> attributes);
45+
46+
TNextElement OnlyHaveAttributes();
47+
TNextElement OnlyHaveAttributes(params Attribute[] attributes);
48+
TNextElement OnlyHaveAttributes(params Type[] attributes);
49+
TNextElement OnlyHaveAttributes(IEnumerable<Attribute> attributes);
50+
TNextElement OnlyHaveAttributes(IEnumerable<Type> attributes);
51+
TNextElement OnlyHaveAttributes(IObjectProvider<Attribute> attributes);
52+
53+
TNextElement HaveAnyAttributesWithArguments(IEnumerable<object> argumentValues);
54+
55+
TNextElement HaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues);
56+
TNextElement HaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues);
57+
58+
TNextElement HaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments);
59+
TNextElement HaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments);
60+
61+
TNextElement HaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments);
62+
TNextElement HaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments);
63+
TNextElement HaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments);
64+
TNextElement HaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments);
65+
66+
TNextElement HaveName(string name);
67+
TNextElement HaveNameMatching(string pattern);
68+
TNextElement HaveNameStartingWith(string pattern);
69+
TNextElement HaveNameEndingWith(string pattern);
70+
TNextElement HaveNameContaining(string pattern);
71+
72+
TNextElement HaveFullName(string fullName);
73+
TNextElement HaveFullNameMatching(string pattern);
74+
TNextElement HaveFullNameStartingWith(string pattern);
75+
TNextElement HaveFullNameEndingWith(string pattern);
76+
TNextElement HaveFullNameContaining(string pattern);
77+
78+
TNextElement HaveAssemblyQualifiedName(string assemblyQualifiedName);
79+
TNextElement HaveAssemblyQualifiedNameMatching(string pattern);
80+
TNextElement HaveAssemblyQualifiedNameStartingWith(string pattern);
81+
TNextElement HaveAssemblyQualifiedNameEndingWith(string pattern);
82+
TNextElement HaveAssemblyQualifiedNameContaining(string pattern);
83+
84+
TNextElement ArePrivate();
85+
TNextElement ArePublic();
86+
TNextElement AreProtected();
87+
TNextElement AreInternal();
88+
TNextElement AreProtectedInternal();
89+
TNextElement ArePrivateProtected();
9090

9191
//Negations
9292

93-
TReturnType AreNot(params ICanBeAnalyzed[] objects);
94-
TReturnType AreNot(IEnumerable<ICanBeAnalyzed> objects);
95-
TReturnType AreNot(IObjectProvider<ICanBeAnalyzed> objects);
96-
97-
TReturnType DoNotCallAny(params MethodMember[] methods);
98-
TReturnType DoNotCallAny(IEnumerable<MethodMember> methods);
99-
TReturnType DoNotCallAny(IObjectProvider<MethodMember> methods);
100-
101-
TReturnType DoNotDependOnAny();
102-
TReturnType DoNotDependOnAny(params IType[] types);
103-
TReturnType DoNotDependOnAny(params Type[] types);
104-
TReturnType DoNotDependOnAny(IObjectProvider<IType> types);
105-
TReturnType DoNotDependOnAny(IEnumerable<IType> types);
106-
TReturnType DoNotDependOnAny(IEnumerable<Type> types);
107-
108-
TReturnType DoNotHaveAnyAttributes();
109-
TReturnType DoNotHaveAnyAttributes(params Attribute[] attributes);
110-
TReturnType DoNotHaveAnyAttributes(params Type[] attributes);
111-
TReturnType DoNotHaveAnyAttributes(IObjectProvider<Attribute> attributes);
112-
TReturnType DoNotHaveAnyAttributes(IEnumerable<Attribute> attributes);
113-
TReturnType DoNotHaveAnyAttributes(IEnumerable<Type> attributes);
114-
115-
TReturnType DoNotHaveAnyAttributesWithArguments(IEnumerable<object> argumentValues);
116-
117-
TReturnType DoNotHaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues);
118-
TReturnType DoNotHaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues);
119-
120-
TReturnType DoNotHaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments);
121-
TReturnType DoNotHaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments);
122-
123-
TReturnType DoNotHaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments);
124-
TReturnType DoNotHaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments);
125-
TReturnType DoNotHaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments);
126-
TReturnType DoNotHaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments);
127-
128-
TReturnType DoNotHaveName(string name);
129-
TReturnType DoNotHaveNameMatching(string pattern);
130-
TReturnType DoNotHaveNameStartingWith(string pattern);
131-
TReturnType DoNotHaveNameEndingWith(string pattern);
132-
TReturnType DoNotHaveNameContaining(string pattern);
133-
134-
TReturnType DoNotHaveFullName(string fullName);
135-
TReturnType DoNotHaveFullNameMatching(string pattern);
136-
TReturnType DoNotHaveFullNameStartingWith(string pattern);
137-
TReturnType DoNotHaveFullNameEndingWith(string pattern);
138-
TReturnType DoNotHaveFullNameContaining(string pattern);
139-
140-
TReturnType DoNotHaveAssemblyQualifiedName(string assemblyQualifiedName);
141-
TReturnType DoNotHaveAssemblyQualifiedNameMatching(string pattern);
142-
TReturnType DoNotHaveAssemblyQualifiedNameStartingWith(string pattern);
143-
TReturnType DoNotHaveAssemblyQualifiedNameEndingWith(string pattern);
144-
TReturnType DoNotHaveAssemblyQualifiedNameContaining(string pattern);
145-
146-
TReturnType AreNotPrivate();
147-
TReturnType AreNotPublic();
148-
TReturnType AreNotProtected();
149-
TReturnType AreNotInternal();
150-
TReturnType AreNotProtectedInternal();
151-
TReturnType AreNotPrivateProtected();
93+
TNextElement AreNot(params ICanBeAnalyzed[] objects);
94+
TNextElement AreNot(IEnumerable<ICanBeAnalyzed> objects);
95+
TNextElement AreNot(IObjectProvider<ICanBeAnalyzed> objects);
96+
97+
TNextElement DoNotCallAny(params MethodMember[] methods);
98+
TNextElement DoNotCallAny(IEnumerable<MethodMember> methods);
99+
TNextElement DoNotCallAny(IObjectProvider<MethodMember> methods);
100+
101+
TNextElement DoNotDependOnAny();
102+
TNextElement DoNotDependOnAny(params IType[] types);
103+
TNextElement DoNotDependOnAny(params Type[] types);
104+
TNextElement DoNotDependOnAny(IObjectProvider<IType> types);
105+
TNextElement DoNotDependOnAny(IEnumerable<IType> types);
106+
TNextElement DoNotDependOnAny(IEnumerable<Type> types);
107+
108+
TNextElement DoNotHaveAnyAttributes();
109+
TNextElement DoNotHaveAnyAttributes(params Attribute[] attributes);
110+
TNextElement DoNotHaveAnyAttributes(params Type[] attributes);
111+
TNextElement DoNotHaveAnyAttributes(IObjectProvider<Attribute> attributes);
112+
TNextElement DoNotHaveAnyAttributes(IEnumerable<Attribute> attributes);
113+
TNextElement DoNotHaveAnyAttributes(IEnumerable<Type> attributes);
114+
115+
TNextElement DoNotHaveAnyAttributesWithArguments(IEnumerable<object> argumentValues);
116+
117+
TNextElement DoNotHaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues);
118+
TNextElement DoNotHaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues);
119+
120+
TNextElement DoNotHaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments);
121+
TNextElement DoNotHaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments);
122+
123+
TNextElement DoNotHaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments);
124+
TNextElement DoNotHaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments);
125+
TNextElement DoNotHaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments);
126+
TNextElement DoNotHaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments);
127+
128+
TNextElement DoNotHaveName(string name);
129+
TNextElement DoNotHaveNameMatching(string pattern);
130+
TNextElement DoNotHaveNameStartingWith(string pattern);
131+
TNextElement DoNotHaveNameEndingWith(string pattern);
132+
TNextElement DoNotHaveNameContaining(string pattern);
133+
134+
TNextElement DoNotHaveFullName(string fullName);
135+
TNextElement DoNotHaveFullNameMatching(string pattern);
136+
TNextElement DoNotHaveFullNameStartingWith(string pattern);
137+
TNextElement DoNotHaveFullNameEndingWith(string pattern);
138+
TNextElement DoNotHaveFullNameContaining(string pattern);
139+
140+
TNextElement DoNotHaveAssemblyQualifiedName(string assemblyQualifiedName);
141+
TNextElement DoNotHaveAssemblyQualifiedNameMatching(string pattern);
142+
TNextElement DoNotHaveAssemblyQualifiedNameStartingWith(string pattern);
143+
TNextElement DoNotHaveAssemblyQualifiedNameEndingWith(string pattern);
144+
TNextElement DoNotHaveAssemblyQualifiedNameContaining(string pattern);
145+
146+
TNextElement AreNotPrivate();
147+
TNextElement AreNotPublic();
148+
TNextElement AreNotProtected();
149+
TNextElement AreNotInternal();
150+
TNextElement AreNotProtectedInternal();
151+
TNextElement AreNotPrivateProtected();
152152

153153
// csharpier-ignore-end
154154
}

ArchUnitNET/Fluent/Syntax/Elements/Members/FieldMembers/IAddFieldMemberCondition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ArchUnitNET.Fluent.Syntax.Elements.Members.FieldMembers
44
{
5-
public interface IAddFieldMemberCondition<TReturnType, TRuleType>
6-
: IAddMemberCondition<TReturnType, TRuleType>
5+
public interface IAddFieldMemberCondition<TNextElement, TRuleType>
6+
: IAddMemberCondition<TNextElement, TRuleType>
77
where TRuleType : ICanBeAnalyzed { }
88
}

ArchUnitNET/Fluent/Syntax/Elements/Members/FieldMembers/IAddFieldMemberPredicate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ArchUnitNET.Fluent.Syntax.Elements.Members.FieldMembers
44
{
5-
public interface IAddFieldMemberPredicate<out TReturnType, TRuleType>
6-
: IAddMemberPredicate<TReturnType, TRuleType>
5+
public interface IAddFieldMemberPredicate<out TNextElement, TRuleType>
6+
: IAddMemberPredicate<TNextElement, TRuleType>
77
where TRuleType : ICanBeAnalyzed { }
88
}

ArchUnitNET/Fluent/Syntax/Elements/Members/IAddMemberCondition.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55

66
namespace ArchUnitNET.Fluent.Syntax.Elements.Members
77
{
8-
public interface IAddMemberCondition<TReturnType, TRuleType>
9-
: IAddObjectCondition<TReturnType, TRuleType>
8+
public interface IAddMemberCondition<TNextElement, TRuleType>
9+
: IAddObjectCondition<TNextElement, TRuleType>
1010
where TRuleType : ICanBeAnalyzed
1111
{
12-
TReturnType BeDeclaredIn(IType firstType, params IType[] moreTypes);
13-
TReturnType BeDeclaredIn(Type firstType, params Type[] moreTypes);
14-
TReturnType BeDeclaredIn(IObjectProvider<IType> types);
15-
TReturnType BeDeclaredIn(IEnumerable<IType> types);
16-
TReturnType BeDeclaredIn(IEnumerable<Type> types);
17-
ShouldRelateToTypesThat<TReturnType, TRuleType> BeDeclaredInTypesThat();
12+
TNextElement BeDeclaredIn(IType firstType, params IType[] moreTypes);
13+
TNextElement BeDeclaredIn(Type firstType, params Type[] moreTypes);
14+
TNextElement BeDeclaredIn(IObjectProvider<IType> types);
15+
TNextElement BeDeclaredIn(IEnumerable<IType> types);
16+
TNextElement BeDeclaredIn(IEnumerable<Type> types);
17+
ShouldRelateToTypesThat<TNextElement, TRuleType> BeDeclaredInTypesThat();
1818

19-
TReturnType BeStatic();
20-
TReturnType BeImmutable();
19+
TNextElement BeStatic();
20+
TNextElement BeImmutable();
2121

2222
//Negations
23-
TReturnType NotBeDeclaredIn(IType firstType, params IType[] moreTypes);
24-
TReturnType NotBeDeclaredIn(Type firstType, params Type[] moreTypes);
25-
TReturnType NotBeDeclaredIn(IObjectProvider<IType> types);
26-
TReturnType NotBeDeclaredIn(IEnumerable<IType> types);
27-
TReturnType NotBeDeclaredIn(IEnumerable<Type> types);
28-
ShouldRelateToTypesThat<TReturnType, TRuleType> NotBeDeclaredInTypesThat();
23+
TNextElement NotBeDeclaredIn(IType firstType, params IType[] moreTypes);
24+
TNextElement NotBeDeclaredIn(Type firstType, params Type[] moreTypes);
25+
TNextElement NotBeDeclaredIn(IObjectProvider<IType> types);
26+
TNextElement NotBeDeclaredIn(IEnumerable<IType> types);
27+
TNextElement NotBeDeclaredIn(IEnumerable<Type> types);
28+
ShouldRelateToTypesThat<TNextElement, TRuleType> NotBeDeclaredInTypesThat();
2929

30-
TReturnType NotBeStatic();
31-
TReturnType NotBeImmutable();
30+
TNextElement NotBeStatic();
31+
TNextElement NotBeImmutable();
3232
}
3333
}

0 commit comments

Comments
 (0)