Skip to content

Commit 42b0e4b

Browse files
Update Obsolete Message for ImplementInterface and DoNotImplementInterface
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
1 parent 12a8d64 commit 42b0e4b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

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

148148
[Obsolete(
149-
"Another overload of this method should be used. This will be removed in a future update."
149+
"Use ImplementAny(Interfacs().That().HaveFullName(...)) instead. This will be removed in a future update."
150150
)]
151151
public TGivenRuleTypeConjunction ImplementInterface(
152152
string pattern,
@@ -420,7 +420,7 @@ public TGivenRuleTypeConjunction AreNotStructs()
420420
}
421421

422422
[Obsolete(
423-
"Another overload of this method should be used. This will be removed in a future update."
423+
"Use DoNotImplementAny(Interfaces().That().HaveFullName(...)) instead. This will be removed in a future update."
424424
)]
425425
public TGivenRuleTypeConjunction DoNotImplementInterface(
426426
string pattern,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public TRuleTypeShouldConjunction BeStructs()
157157
}
158158

159159
[Obsolete(
160-
"Another overload of this method should be used. This will be removed in a future update."
160+
"Use ImplementAnyInterfacesThat().HaveFullName(...) instead. This will be removed in a future update."
161161
)]
162162
public TRuleTypeShouldConjunction ImplementInterface(
163163
string pattern,
@@ -452,7 +452,7 @@ public TRuleTypeShouldConjunction NotBeStructs()
452452
}
453453

454454
[Obsolete(
455-
"Another overload of this method should be used. This will be removed in a future update."
455+
"Use NotImplementAnyInterfacesThat().HaveFullName(...) instead. This will be removed in a future update."
456456
)]
457457
public TRuleTypeShouldConjunction NotImplementInterface(
458458
string pattern,

0 commit comments

Comments
 (0)