Hot answers tagged


Your idea of introducing an interface or wrapper class seems correct to me. By depending on an interface, you can avoid the dependency on the static class. The interface can be implemented by a class that just forwards the requests to the static privilege checker, and by other classes that serve testing purposes. But like I mentioned this PrivilegeChecker ...

Only top voted, non community-wiki answers of a minimum length are eligible