IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
You can use testable classes to mock the behavior of class internal logic.
EXAMPLE: If you a class like the OperationClass.cs in Sitefinity documentation-samples on GitHub, you can implement a testable class for the OperationClass and override the IsReadOnlyEnabled method. For more information, see TestableOperationClass.cs in the same repository.
OperationClass.cs
OperationClass
IsReadOnlyEnabled
TestableOperationClass.cs
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important