Skip to content

Commit 5b6e74d

Browse files
Rename to ImplementAnyInterfaces
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
1 parent f8524d9 commit 5b6e74d

8 files changed

Lines changed: 208 additions & 208 deletions

File tree

ArchUnitNET/Fluent/Syntax/Elements/Types/GivenTypesThat.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public TGivenRuleTypeConjunction AreStructs()
146146
}
147147

148148
[Obsolete(
149-
"Use ImplementAny(Interfacs().That().HaveFullName(...)) instead. This will be removed in a future update."
149+
"Use ImplementAnyInterfaces(Interfacs().That().HaveFullName(...)) instead. This will be removed in a future update."
150150
)]
151151
public TGivenRuleTypeConjunction ImplementInterface(
152152
string pattern,
@@ -175,12 +175,12 @@ public TGivenRuleTypeConjunction ImplementInterface(Type intf)
175175
}
176176

177177
// csharpier-ignore-start
178-
public TGivenRuleTypeConjunction ImplementAny() => ImplementAny(new ObjectProvider<Interface>());
179-
public TGivenRuleTypeConjunction ImplementAny(params Interface[] interfaces) => ImplementAny(new ObjectProvider<Interface>(interfaces));
180-
public TGivenRuleTypeConjunction ImplementAny(params Type[] interfaces) => ImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
181-
public TGivenRuleTypeConjunction ImplementAny(IEnumerable<Interface> interfaces) => ImplementAny(new ObjectProvider<Interface>(interfaces));
182-
public TGivenRuleTypeConjunction ImplementAny(IEnumerable<Type> interfaces) => ImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
183-
public TGivenRuleTypeConjunction ImplementAny(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TRuleType>.ImplementAny(interfaces));
178+
public TGivenRuleTypeConjunction ImplementAnyInterfaces() => ImplementAnyInterfaces(new ObjectProvider<Interface>());
179+
public TGivenRuleTypeConjunction ImplementAnyInterfaces(params Interface[] interfaces) => ImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
180+
public TGivenRuleTypeConjunction ImplementAnyInterfaces(params Type[] interfaces) => ImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
181+
public TGivenRuleTypeConjunction ImplementAnyInterfaces(IEnumerable<Interface> interfaces) => ImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
182+
public TGivenRuleTypeConjunction ImplementAnyInterfaces(IEnumerable<Type> interfaces) => ImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
183+
public TGivenRuleTypeConjunction ImplementAnyInterfaces(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TRuleType>.ImplementAny(interfaces));
184184
// csharpier-ignore-end
185185

186186
[Obsolete(
@@ -420,7 +420,7 @@ public TGivenRuleTypeConjunction AreNotStructs()
420420
}
421421

422422
[Obsolete(
423-
"Use DoNotImplementAny(Interfaces().That().HaveFullName(...)) instead. This will be removed in a future update."
423+
"Use DoNotImplementAnyInterfaces(Interfaces().That().HaveFullName(...)) instead. This will be removed in a future update."
424424
)]
425425
public TGivenRuleTypeConjunction DoNotImplementInterface(
426426
string pattern,
@@ -453,12 +453,12 @@ public TGivenRuleTypeConjunction DoNotImplementInterface(Type intf)
453453
}
454454

455455
// csharpier-ignore-start
456-
public TGivenRuleTypeConjunction DoNotImplementAny() => DoNotImplementAny(new ObjectProvider<Interface>());
457-
public TGivenRuleTypeConjunction DoNotImplementAny(params Interface[] interfaces) => DoNotImplementAny(new ObjectProvider<Interface>(interfaces));
458-
public TGivenRuleTypeConjunction DoNotImplementAny(params Type[] interfaces) => DoNotImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
459-
public TGivenRuleTypeConjunction DoNotImplementAny(IEnumerable<Interface> interfaces) => DoNotImplementAny(new ObjectProvider<Interface>(interfaces));
460-
public TGivenRuleTypeConjunction DoNotImplementAny(IEnumerable<Type> interfaces) => DoNotImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
461-
public TGivenRuleTypeConjunction DoNotImplementAny(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TRuleType>.DoNotImplementAny(interfaces));
456+
public TGivenRuleTypeConjunction DoNotImplementAnyInterfaces() => DoNotImplementAnyInterfaces(new ObjectProvider<Interface>());
457+
public TGivenRuleTypeConjunction DoNotImplementAnyInterfaces(params Interface[] interfaces) => DoNotImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
458+
public TGivenRuleTypeConjunction DoNotImplementAnyInterfaces(params Type[] interfaces) => DoNotImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
459+
public TGivenRuleTypeConjunction DoNotImplementAnyInterfaces(IEnumerable<Interface> interfaces) => DoNotImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
460+
public TGivenRuleTypeConjunction DoNotImplementAnyInterfaces(IEnumerable<Type> interfaces) => DoNotImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
461+
public TGivenRuleTypeConjunction DoNotImplementAnyInterfaces(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TRuleType>.DoNotImplementAny(interfaces));
462462
// csharpier-ignore-end
463463

464464
[Obsolete(

ArchUnitNET/Fluent/Syntax/Elements/Types/ITypeConditions.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ TReturnType BeAssignableTo(
3434
TReturnType BeStructs();
3535

3636
[Obsolete(
37-
"Another overload of this method should be used. This will be removed in a future update."
37+
"Use ImplementAnyInterfacesThat().HaveFullName(...) instead. This will be removed in a future update."
3838
)]
3939
TReturnType ImplementInterface(string pattern, bool useRegularExpressions = false);
4040
TReturnType ImplementInterface(Interface intf);
4141
TReturnType ImplementInterface(Type intf);
4242

43-
TReturnType ImplementAny();
44-
TReturnType ImplementAny(params Interface[] interfaces);
45-
TReturnType ImplementAny(params Type[] interfaces);
46-
TReturnType ImplementAny(IEnumerable<Interface> interfaces);
47-
TReturnType ImplementAny(IEnumerable<Type> interfaces);
48-
TReturnType ImplementAny(IObjectProvider<Interface> interfaces);
43+
TReturnType ImplementAnyInterfaces();
44+
TReturnType ImplementAnyInterfaces(params Interface[] interfaces);
45+
TReturnType ImplementAnyInterfaces(params Type[] interfaces);
46+
TReturnType ImplementAnyInterfaces(IEnumerable<Interface> interfaces);
47+
TReturnType ImplementAnyInterfaces(IEnumerable<Type> interfaces);
48+
TReturnType ImplementAnyInterfaces(IObjectProvider<Interface> interfaces);
4949

5050
[Obsolete(
5151
"Either ResideInNamespace() without the useRegularExpressions parameter or ResideInNamespaceMatching() should be used"
@@ -98,18 +98,18 @@ TReturnType NotBeAssignableTo(
9898
TReturnType NotBeStructs();
9999

100100
[Obsolete(
101-
"Another overload of this method should be used. This will be removed in a future update."
101+
"Use NotImplementAnyInterfacesThat().HaveFullName(...) instead. This will be removed in a future update."
102102
)]
103103
TReturnType NotImplementInterface(string pattern, bool useRegularExpressions = false);
104104
TReturnType NotImplementInterface(Interface intf);
105105
TReturnType NotImplementInterface(Type intf);
106106

107-
TReturnType NotImplementAny();
108-
TReturnType NotImplementAny(params Interface[] interfaces);
109-
TReturnType NotImplementAny(params Type[] interfaces);
110-
TReturnType NotImplementAny(IEnumerable<Interface> interfaces);
111-
TReturnType NotImplementAny(IEnumerable<Type> interfaces);
112-
TReturnType NotImplementAny(IObjectProvider<Interface> interfaces);
107+
TReturnType NotImplementAnyInterfaces();
108+
TReturnType NotImplementAnyInterfaces(params Interface[] interfaces);
109+
TReturnType NotImplementAnyInterfaces(params Type[] interfaces);
110+
TReturnType NotImplementAnyInterfaces(IEnumerable<Interface> interfaces);
111+
TReturnType NotImplementAnyInterfaces(IEnumerable<Type> interfaces);
112+
TReturnType NotImplementAnyInterfaces(IObjectProvider<Interface> interfaces);
113113

114114
[Obsolete(
115115
"Either NotResideInNamespace() without the useRegularExpressions parameter or NotResideInNamespaceMatching() should be used"

ArchUnitNET/Fluent/Syntax/Elements/Types/ITypePredicates.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ TReturnType AreAssignableTo(
3434
TReturnType AreStructs();
3535

3636
[Obsolete(
37-
"Another overload of this method should be used. This will be removed in a future update."
37+
"Use ImplementAnyInterfaces(Interfaces().That().HaveFullName(...)) instead. This will be removed in a future update."
3838
)]
3939
TReturnType ImplementInterface(string pattern, bool useRegularExpressions = false);
4040
TReturnType ImplementInterface(Interface intf);
4141
TReturnType ImplementInterface(Type intf);
4242

43-
TReturnType ImplementAny();
44-
TReturnType ImplementAny(params Interface[] interfaces);
45-
TReturnType ImplementAny(params Type[] interfaces);
46-
TReturnType ImplementAny(IEnumerable<Interface> interfaces);
47-
TReturnType ImplementAny(IEnumerable<Type> interfaces);
48-
TReturnType ImplementAny(IObjectProvider<Interface> interfaces);
43+
TReturnType ImplementAnyInterfaces();
44+
TReturnType ImplementAnyInterfaces(params Interface[] interfaces);
45+
TReturnType ImplementAnyInterfaces(params Type[] interfaces);
46+
TReturnType ImplementAnyInterfaces(IEnumerable<Interface> interfaces);
47+
TReturnType ImplementAnyInterfaces(IEnumerable<Type> interfaces);
48+
TReturnType ImplementAnyInterfaces(IObjectProvider<Interface> interfaces);
4949

5050
[Obsolete(
5151
"Either ResideInNamespace() without the useRegularExpressions parameter or ResideInNamespaceMatching() should be used"
@@ -98,18 +98,18 @@ TReturnType AreNotAssignableTo(
9898
TReturnType AreNotStructs();
9999

100100
[Obsolete(
101-
"Another overload of this method should be used. This will be removed in a future update."
101+
"Use DoNotImplementAnyInterfaces(Interfaces().That().HaveFullName(...)) instead. This will be removed in a future update."
102102
)]
103103
TReturnType DoNotImplementInterface(string pattern, bool useRegularExpressions = false);
104104
TReturnType DoNotImplementInterface(Interface intf);
105105
TReturnType DoNotImplementInterface(Type intf);
106106

107-
TReturnType DoNotImplementAny();
108-
TReturnType DoNotImplementAny(params Interface[] interfaces);
109-
TReturnType DoNotImplementAny(params Type[] interfaces);
110-
TReturnType DoNotImplementAny(IEnumerable<Interface> interfaces);
111-
TReturnType DoNotImplementAny(IEnumerable<Type> interfaces);
112-
TReturnType DoNotImplementAny(IObjectProvider<Interface> interfaces);
107+
TReturnType DoNotImplementAnyInterfaces();
108+
TReturnType DoNotImplementAnyInterfaces(params Interface[] interfaces);
109+
TReturnType DoNotImplementAnyInterfaces(params Type[] interfaces);
110+
TReturnType DoNotImplementAnyInterfaces(IEnumerable<Interface> interfaces);
111+
TReturnType DoNotImplementAnyInterfaces(IEnumerable<Type> interfaces);
112+
TReturnType DoNotImplementAnyInterfaces(IObjectProvider<Interface> interfaces);
113113

114114
[Obsolete(
115115
"Either DoNotResideInNamespace() without the useRegularExpressions parameter or DoNotResideInNamespaceMatching() should be used"

ArchUnitNET/Fluent/Syntax/Elements/Types/ShouldRelateToTypesThat.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public TRuleTypeShouldConjunction AreStructs()
172172
}
173173

174174
[Obsolete(
175-
"Another overload of this method should be used. This will be removed in a future update."
175+
"Use ImplementAnyInterfaces(Interfacs().That().HaveFullName(...)) instead. This will be removed in a future update."
176176
)]
177177
public TRuleTypeShouldConjunction ImplementInterface(
178178
string pattern,
@@ -205,12 +205,12 @@ public TRuleTypeShouldConjunction ImplementInterface(Type intf)
205205
}
206206

207207
// csharpier-ignore-start
208-
public TRuleTypeShouldConjunction ImplementAny() => ImplementAny(new ObjectProvider<Interface>());
209-
public TRuleTypeShouldConjunction ImplementAny(params Interface[] interfaces) => ImplementAny(new ObjectProvider<Interface>(interfaces));
210-
public TRuleTypeShouldConjunction ImplementAny(params Type[] interfaces) => ImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
211-
public TRuleTypeShouldConjunction ImplementAny(IEnumerable<Interface> interfaces) => ImplementAny(new ObjectProvider<Interface>(interfaces));
212-
public TRuleTypeShouldConjunction ImplementAny(IEnumerable<Type> interfaces) => ImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
213-
public TRuleTypeShouldConjunction ImplementAny(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TReferenceType>.ImplementAny(interfaces));
208+
public TRuleTypeShouldConjunction ImplementAnyInterfaces() => ImplementAnyInterfaces(new ObjectProvider<Interface>());
209+
public TRuleTypeShouldConjunction ImplementAnyInterfaces(params Interface[] interfaces) => ImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
210+
public TRuleTypeShouldConjunction ImplementAnyInterfaces(params Type[] interfaces) => ImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
211+
public TRuleTypeShouldConjunction ImplementAnyInterfaces(IEnumerable<Interface> interfaces) => ImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
212+
public TRuleTypeShouldConjunction ImplementAnyInterfaces(IEnumerable<Type> interfaces) => ImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
213+
public TRuleTypeShouldConjunction ImplementAnyInterfaces(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TReferenceType>.ImplementAny(interfaces));
214214
// csharpier-ignore-end
215215

216216
[Obsolete(
@@ -464,7 +464,7 @@ public TRuleTypeShouldConjunction AreNotStructs()
464464
}
465465

466466
[Obsolete(
467-
"Another overload of this method should be used. This will be removed in a future update."
467+
"Use DoNotImplementAnyInterfaces(Interfaces().That().HaveFullName(...)) instead. This will be removed in a future update."
468468
)]
469469
public TRuleTypeShouldConjunction DoNotImplementInterface(
470470
string pattern,
@@ -497,12 +497,12 @@ public TRuleTypeShouldConjunction DoNotImplementInterface(Type intf)
497497
}
498498

499499
// csharpier-ignore-start
500-
public TRuleTypeShouldConjunction DoNotImplementAny() => DoNotImplementAny(new ObjectProvider<Interface>());
501-
public TRuleTypeShouldConjunction DoNotImplementAny(params Interface[] interfaces) => DoNotImplementAny(new ObjectProvider<Interface>(interfaces));
502-
public TRuleTypeShouldConjunction DoNotImplementAny(params Type[] interfaces) => DoNotImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
503-
public TRuleTypeShouldConjunction DoNotImplementAny(IEnumerable<Interface> interfaces) => DoNotImplementAny(new ObjectProvider<Interface>(interfaces));
504-
public TRuleTypeShouldConjunction DoNotImplementAny(IEnumerable<Type> interfaces) => DoNotImplementAny(new SystemTypeObjectProvider<Interface>(interfaces));
505-
public TRuleTypeShouldConjunction DoNotImplementAny(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TReferenceType>.DoNotImplementAny(interfaces));
500+
public TRuleTypeShouldConjunction DoNotImplementAnyInterfaces() => DoNotImplementAnyInterfaces(new ObjectProvider<Interface>());
501+
public TRuleTypeShouldConjunction DoNotImplementAnyInterfaces(params Interface[] interfaces) => DoNotImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
502+
public TRuleTypeShouldConjunction DoNotImplementAnyInterfaces(params Type[] interfaces) => DoNotImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
503+
public TRuleTypeShouldConjunction DoNotImplementAnyInterfaces(IEnumerable<Interface> interfaces) => DoNotImplementAnyInterfaces(new ObjectProvider<Interface>(interfaces));
504+
public TRuleTypeShouldConjunction DoNotImplementAnyInterfaces(IEnumerable<Type> interfaces) => DoNotImplementAnyInterfaces(new SystemTypeObjectProvider<Interface>(interfaces));
505+
public TRuleTypeShouldConjunction DoNotImplementAnyInterfaces(IObjectProvider<Interface> interfaces) => Handle(TypePredicatesDefinition<TReferenceType>.DoNotImplementAny(interfaces));
506506
// csharpier-ignore-end
507507

508508
[Obsolete(

0 commit comments

Comments
 (0)