Structure of the Line/Job Context API

When testing scenarios that are LOB-specific or job-specific, there is sometimes a need to share implementation code, and sometimes a need to isolate it. For example:

  • A method to add line level coverages is needed for all policy-related tests, but:
    • A method to add drivers is needed only for personal auto policy tests.
    • A method to add covered workers is needed only for workers' compensation policy tests.
  • A method to quote a job is needed for all job-related tests, but:
    • A method to start a renewal is needed only for renewal tests.
    • A method to apply preemption changes is needed only for policy change tests.

The Line/Job Context API has a multi-dimensional, multi-layer structure. This structure provides a way to share code as needed and isolate code as needed.

There are two dimensions to this context API: one for Line of Business and one for Job.