Database Reference
In-Depth Information
/testing_with_xcode/Introduction/Introduction.html ) or our topic iOS 7 by Tutorials ,
which includes a chapter on XCTest.
Getting started
The sample project you'll work with in this chapter, CampgroundManager , is a
reservation system to keep track of campground sites, the amenities for each site
and the campers themselves.
The app is a work in progress. The concept is a small campground could use this
app to manage their campsites and reservations including the schedule and
payments. The user interface is extremely basic: It functions but doesn't provide
much value. That's OK, because in this tutorial, you're never going to build and run
the app!
I've broken down the business logic for the app into small pieces, and you're going
to write unit tests to help with the design. As you develop the unit tests and flesh
out the business logic, it'll become clearer what work is left to do on the user
interface.
The business logic is split up into three distinct classes arranged by subject. There's
one for campsites, one for campers and one for reservations, and all have the suffix
Service . Your tests will focus on these service classes.
Since you'll be testing the Core Data parts of the app, the first order of business is
getting the Core Data stack set up for testing.
 
 
Search WWH ::




Custom Search