For developers: Use testable classes
You can use testable classes to mock the behavior of class internal logic.
When you have the following code:
You can implement a testable class for the OperationClass and override the IsReadOnlyEnabled method in the following way: