To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorCreate property
- Background
-
- Given
- that a realm is active
- Scenarios
-
- Create a simple property
- Create a property with features
- Create a property who is owned by a person that already exists
- Create a property who is owned by a person that does not yet exist
- Create a simple property
-
Every property is located at a place, hence the Place will always be passed in as part of the uic.
- Given
-
a "Create Property" job version "1" is invoked with the following uic:
targets attributes <ns>;Property;<property_id>;0 <property_id>;type;house <ns>;Place;<location_id>;0 <location_id>;country;Australia <location_id>;locality;Sydney <location_id>;region;NSW <location_id>;postcode;2000 <location_id>;street_address;46 Pitt St <location_id>;google_map_link;http://goo.gl/maps/1AhUA - When
- the request to "Create Property" is received
- Then
-
a new "Property" will be created with:
attribute value type house type house - And
-
the "Property" will have the following objects attached:
object_type Features Owners - And
-
a new "Place" will be created with:
attribute value domain_obj_id <location_id> country Australia locality Sydney region NSW postcode 2000 street_address 46 Pitt St google_map_link http://goo.gl/maps/1AhUA domain_obj_state active
- Create a property with features
-
If a property has more than 1 feature, add them into the uic.
- Given
-
a "Create Property" job version "1" is invoked with the following uic:
targets attributes <ns>;Property;<property_id>;0 <property_id>;type;house <ns>;Place;<location_id>;0 <location_id>;country;Australia <location_id>;locality;Sydney <location_id>;region;NSW <location_id>;postcode;2000 <location_id>;street_address;46 Pitt St <location_id>;google_map_link;http://goo.gl/maps/1AhUA <ns>;Feature;<feature_bedroom_id>;0 <feature_bedroom_id>;type;bedroom <feature_bedroom_id>;value;3 - When
- the request to "Create Property" is received
- Then
- 'the objects as per -create a simple property- scenario will be created'
- And
- a :bedroom_feature will be created under "Features"
- Create a property who is owned by a person that already exists
-
If the owner already exists, then this context will not create a stubbed Person.
- Given
-
a "Create Property" job version "1" is invoked with the following uic:
targets attributes <ns>;Property;<property_id>;0 <property_id>;type;house <ns>;Place;<location_id>;0 <location_id>;country;Australia <location_id>;locality;Sydney <location_id>;region;NSW <location_id>;postcode;2000 <location_id>;street_address;46 Pitt St <location_id>;google_map_link;http://goo.gl/maps/1AhUA <ns>;Owner;<owner_id>;0 <owner_id>;type;Person <owner_id>;entity_id;3a07ac40-d879-11e2-a28f-0800200c9a66 - And
- the "Person" with id "3a07ac40-d879-11e2-a28f-0800200c9a66" is a :person_who_owns_the_property that already exists
- When
- the request to "Create Property" is received
- Then
- 'the objects as per -create a simple property- scenario will be created'
- And
- a :property_owner will be created under "Owners"
- Create a property who is owned by a person that does not yet exist
-
If the owner does not yet exist in the system, then this context will stub a Person object.
- Given
-
a "Create Property" job version "1" is invoked with the following uic:
targets attributes <ns>;Property;<property_id>;0 <property_id>;type;house <ns>;Place;<location_id>;0 <location_id>;country;Australia <location_id>;locality;Sydney <location_id>;region;NSW <location_id>;postcode;2000 <location_id>;street_address;46 Pitt St <location_id>;google_map_link;http://goo.gl/maps/1AhUA <ns>;Owner;<owner_id>;0 <owner_id>;type;Person <owner_id>;entity_id;3a07ac40-d879-11e2-a28f-0800200c9a66 - And
- 'the person with id 3a07ac40-d879-11e2-a28f-0800200c9a66 does not yet exist in the system'
- When
- the request to "Create Property" is received
- Then
- 'the objects as per -create a simple property- scenario will be created'
- And
- a :property_owner will be created under "Owners"
- And
- a :person_who_owns_the_property will be created under "People"
Last published over 7 years ago by nbeagley.