angeladox/HappyLandL — Issue #2: Adding a New Tenant
Author: angeladox
Created: 2012-03-06 21:55:00+00:00
State: open

(Written by Q, Brian, and Angela)

Use Case: Adding a new Tenant

Brief Description:
The Add a Tenant use case allows the Landlord to attach a tenant to a property.

Actors: Landlord, Property, Unit, Tenant

Preconditions
The Landlord has an acount.
The Landlord is logged in.
The Landlord has created a property
The Landlord has attached a unit

Basic Flow of Events
1. The use case begins when the Landlord clicks “Add Tenant”
2. The Landlord enters the required Landlord Tenant 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 Tenant information are stored into the Landlord’s account. The application notifies the Landlord that the Tenant has been added and attached to a unit which is attached to a property.

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 created a tenant and attached the tenant to a unit.

OR 2. The Landlord has not created a tenant nor has he attached the tenant to a unit.