You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a mocking framework in tests it is really annoying to get those exceptions when the mocking framework just tries to populate the model with test data ;)
To avoid this, make sure to annotate everything that can thow a NotSupportedException as [Obsolete].
Maybe it is worth having a script checking for this.
The text was updated successfully, but these errors were encountered:
The "problem" is that for some properties, only the setter is obsolete (and throws NotSupportedException), but it is not possible to mark only a property setter as obsolete. These setters will be removed in DXA 2.0 as part of deprecated API cleanup.
When using a mocking framework in tests it is really annoying to get those exceptions when the mocking framework just tries to populate the model with test data ;)
To avoid this, make sure to annotate everything that can thow a
NotSupportedException
as[Obsolete]
.Maybe it is worth having a script checking for this.
The text was updated successfully, but these errors were encountered: