Section 13.5. Adding the Grace Period


13.5. Adding the Grace Period

Then we tackled some more of the business rule. Emily suggested, "Let's show whether the grace period is included in the exTRa time(). We can handle that with count grace, a given field." Emily sketched Figure 13.5 as a starting structure; this assumes a grace period of 1 hour.

Figure 13.5. Emily's Extension of the Tests with Grace Period


"Let's now sort out how the grace period is calculated, based on the rental period," suggested Don. He tried various ways of adding that to the current table. Then he realized, with a little prompting, "The grace period calculation would be best done independently." (We don't cover that here.) So that led to Figure 13.6, where the grace period is simply plugged in as a given.

Figure 13.6. Don's Added Grace Period




    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net