title: Access property from a class method?
body: <p>In order to make my code testable, I have created a lazy initializer; this way in my unit test, I can mock any object I want before the getter gets called.</p>
  
  <p>When it comes to class methods, though, my class method doesn't have access to the properties I have defined. </p>
  
  <ol>
  <li>Is there any way to make the properties accessible by my class method?</li>
  <li>If not, is there any way to create static variables that are also accessible outside of this class, i.e., accessible by my unit test class?</li>
  </ol>
  
  <pre><code>
  @implementation
  @synthesize webService;
  
  + (void)doSomething
  {
     self.webService.url = @"some url";
     [self.webService start];
     // do other things
  }
  
  - (WebService*)webService
  {
     if (!webService)
     {
        webService = [[WebService alloc] init];
     }
     return webService;
  }
  
  @end
  </code></pre>