13.5. Adding the Grace PeriodThen 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
|