angeladox/HappyLandL — Issue #3: Adding a New Unit
Author: angeladox
Created: 2012-03-06 21:57:33+00:00
State: open

Written by Q, Brian, and Angela)

Use Case: Adding a new Unit

Brief Description:
This use case allows the Landlord to attach a Unit to his property.

Actors: Landlord, Property, Unit

Preconditions
The Landlord has an account.
The Landlord is logged in.
The Landlord has already created a property.

Basic Flow of Events
1. The use case begins when the Landlord clicks “Add Unit”
2. The Landlord enters the required Landlord unit information and requests that the
application saves the values entered.
3. The application validates that its constraints against the values entered.
4. The values for the Landlord Unit information are stored into the Landlord’s account. The application notifies the Landlord that the unit has been added.

Alternative Flows
1. Values entered do not meet our constraints:
The application gives an error message and prompts the Landlord to re-enter valid information. The Landlord re-enters the information and the application checks its constraints against the values entered. This is recursive.
2. The Landlord cancels his request.
In this case no data will be saved.

Postconditions:
1. The Landlord has successfully attached a unit to a property

OR 2. The Landlord has not created a unit, nor has he attached it to a property.