Use testable classes

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.

Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
New to Sitefinity?