using some IoC to mock out nameapi calls during testing