My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 19: Simple mapping
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  fluxmunki
Closed:  Oct 2008
Type-Story
Priority-Medium


Sign in to add a comment
 
Reported by fluxmunki, Sep 29, 2008
Narrative:
As a Developer
I want to be able to specify that a property on the 'from' type is directly
assigned to a corresponding property on the 'to' type
So that I can test that these mappings are fulfilled

Acceptance Criteria:

Scenario 1: Properties exists on 'from' and 'to'
Given that the corresponding property exists on the 'From' class
  And the corresponding property exists on the 'To' class
When the Developer tries to add a simple mapping
Then the test for 'AllPropertiesMapped' will not fail on this property 

Scenario 2: Property does not exist on one or both classes
Given that the specified property does not exist on one of the classes
When the Developer tries to add the mapping
Then the addition should fail
 And the property name(s) that did not exist should be shown

Scenario 3: Property already mapped to another property
Given that the specified property exists
 And the property already has a mapping
When the Developer tries to add a simple mapping
Then the addition should succeed
  And the mapping should be available for testing (One property could be
mapped to multiple outcomes)

Scenario 4: Property mapping already exists
Given that the specified property exists
 And the property already has a mapping with the same 'from' and 'to'
properties
When the Developer tries to add a simple mapping
Then the addition should fail
  And the reason for the failure should be shown


Comment 1 by fluxmunki, Oct 19, 2008
(No comment was entered for this change.)
Status: Started
Comment 2 by fluxmunki, Oct 22, 2008
(No comment was entered for this change.)
Status: Fixed
Comment 3 by fluxmunki, Nov 15, 2008
Further scenarios:

Scenario 5: Primitive properties exist with implicit conversion on 'from' and 'to'
Given that the corresponding property exists on the 'From'  and 'To' classes
  And both properties are of primitive type
  And an implicit coversion exists 
When the Developer tries to add a simple mapping
Then an exception will be thrown
 
Scenario 6: Primitive properties exist with explicit conversion on 'from' and 'to'
Given that the corresponding property exists on the 'From'  and 'To' classes
  And both properties are of primitive type
  And an explicit coversion exists 
When the Developer tries to add a simple mapping
Then an exception will be thrown

Scenario 7: properties exist with explicit conversion on 'from' and 'to'
Given that the corresponding property exists on the 'From'  and 'To' classes
  And an explicit cast operator exists for the conversion 
When the Developer tries to add a simple mapping
Then an exception will be thrown

Scenario 8: properties exist with implicit conversion on 'from' and 'to'
Given that the corresponding property exists on the 'From'  and 'To' classes
  And an implicit cast operator exists for the conversion 
When the Developer tries to add a simple mapping
Then an exception will be thrown

Note: These scenarios 5-8 have the expected outcome of an exception, in the future
this may change

Sign in to add a comment

Hosted by Google Code