Task 4: Choosing an implementation class for an interface
You define the implementation class for an interface.
About this task
In this task, you want to add a new input parameter to define what kind of property the borrower has. You add a new propertyInfo attribute in the Borrower class. The attribute is typed with an interface, and you must choose the implementation class to be used in the tests.
The PropertyInfo interface has two implementation classes: CommercialPropertyInfo and CondominiumPropertyInfo.
In the BOM, you must create a constructor for the interface to:
- Choose the implementation class to use for the tests.
- Define the arguments that create the columns in the Scenarios sheet.
Procedure
What to do next
In the next task, you add a domain to the property of the borrower and see how to maintain it in the scenario file.