Test-Driven iOS Development (Richard Stout's Library) by Graham Lee

Test-Driven iOS Development (Richard Stout's Library) by Graham Lee

Author:Graham Lee
Language: eng
Format: epub
Publisher: Addison-Wesley Professional
Published: 2012-06-12T16:00:00+00:00


- (void)searchForQuestionsWithTag: (NSString *)tag;

- (void)downloadInformationForQuestionWithID: (NSInteger)identifier;

- (void)downloadAnswersToQuestionWithID: (NSInteger)identifier;

- (void)fetchBodyForQuestion: (NSInteger)questionID;

@end

But the ability to inspect that URL is needed only in tests; it’s not naturally a part of the class’s API. Define a subclass of StackOverflowCommunicator that offers this ability. This subclass will be used only in the unit test’s target, not in the app.

@interface InspectableStackOverflowCommunicator :

StackOverflowCommunicator

- (NSURL *)URLToFetch;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.