Several ways to restructure code to allow unit tests to be written when a method has a dependency on a static class.