Свойство | Type | Description | |
---|---|---|---|
_defaultValueRegistry | |||
_validValueGenRegistry |
Méthode | Description | |
---|---|---|
BOTestFactory ( |
|
|
CreateDefaultBusinessObject ( ) : IBusinessObject |
Creates a business object with only its default values set (i.e. defaults from its ClassDef).
|
|
CreateSavedBusinessObject ( ) : IBusinessObject |
Returns a saved valid business object of Type
|
|
CreateValidBusinessObject ( ) : IBusinessObject |
Creates a business object with all of its compulsory properties and Relationships set to Valid values.
|
|
FixInvalidInterPropRules ( IBusinessObject bo ) : void |
Fixes a Business object that has been created. I.e. if the Business object has any InterPropRules then these rules are used to ensure that the Property values do not conflict with the InterPropRules.
|
|
GetValidPropValue ( IBOProp boProp ) : object |
Returns a valid prop value for boProp using any IPropRules for the Prop. Note_ this value does take into consideration any InterPropRules
|
|
GetValidPropValue ( IBusinessObject bo, string propName ) : object |
Returns a valid prop value for propName for the IBusinessObject using any IPropRules for the Prop and any InterPropRules for the BusinessObject.
|
|
GetValidPropValue ( ISingleValueDef propDef ) : object |
Returns a valid prop value for propDef using any IPropRules for the Prop. Note_ this value does not take into consideration any InterPropRules
|
|
GetValidPropValue ( |
Returns a valid prop value for propName for the Business object of type type using any IPropRules for the Prop. Note_ this value does nto atake into consideration any InterPropRules
|
|
GetValidPropValue ( string propName ) : object |
Returns a valid prop value for propName for the Business object using any IPropRules for the Prop. Note_ this value does nto atake into consideration any InterPropRules
|
|
GetValidRelationshipValue ( ISingleValueDef relationshipDef ) : IBusinessObject |
Returns a Valid Relationship Value for the relationship relationshipDef
|
|
GetValidValue ( IBusinessObject bo, string name ) : object |
Returns a valid prop value for Property or single relationship with the name name for the IBusinessObject.
|
|
GetValidValue ( string name ) : object |
Returns a valid Value for either a single relationship or a property for the BusinessObject's relationship or prop is identified by the name
|
|
GetValidValueGenerator ( ISingleValueDef propDef ) : ValidValueGenerator |
returns a valid value generator for of the specified type based on the ISingleValueDef.ISingleValueDef.PropertyType
|
|
SetPropValueToValidValue ( IBOProp boProp ) : void |
Sets the value of the IBOProp to a valid value. This is primarily used internally.
|
|
SetRelationshipToValidValue ( ISingleRelationship singleRelationship ) : void |
Sets the Value of the ISingleRelationship to a valid value.
|
|
SetValueFor ( string propertyName, object propertyValue ) : void |
Sets the propertyValue for the method Idenfied by the propertyName. This ensures that when the CreateValidBusinessObject or BOTestFactory.UpdateCompulsoryProperties or GetValidPropValue(Habanero.Base.IBOProp) and the GetValidRelationshipValue for this Property this value is always used
|
|
UpdateCompulsoryProperties ( IBusinessObject businessObject ) : void |
Updates any compulsory relationships or properties for
|
Méthode | Description | |
---|---|---|
CreateBusinessObject ( ) : IBusinessObject | ||
GetPropDef ( IClassDef classDef, string propName, bool raiseErrIfNotExists ) : ISingleValueDef | ||
GetPropDef ( |
||
GetRelationshipDef ( |
||
GetValidPropValue ( IClassDef classDef, string propName ) : object |
Returns a valid prop value for propName for the Business object of type classDef using any IPropRules for the Prop. Note_ this value does nto atake into consideration any InterPropRules
|
|
GetValidRelationshipValue ( |
Returns a valid Relationship for the BusinessObject's relationship identified by the relationshipName
|
|
ValidateClassDef ( |
||
ValidateRelationshipDef ( |
Méthode | Description | |
---|---|---|
GetBusinessObjectRules ( IBusinessObject bo ) : IEnumerable |
||
GetValidValue ( |
Returns a valid Value for either a single relationship or a property for the BusinessObject's relationship or prop is identified by the name
|
|
IsNotWriteNotNew ( ISingleValueDef propDef ) : bool | ||
MustCreateSinglePropValue ( ISingleRelationship singleRelationship ) : bool | ||
SetRelationshipToValidValue ( IMultipleRelationship multipleRelationship ) : void |
Sets the Value of the IMultipleRelationship to a list of values as configured using the WithMany.
|
|
ThrowPropDoesNotExist ( |
||
UpdatePrimaryKeyProps ( IBusinessObject businessObject ) : void | ||
UpdateProperties ( IBusinessObject businessObject ) : void | ||
UpdateSingleRelationships ( IBusinessObject businessObject ) : void | ||
UpdatedManyRelationships ( IBusinessObject businessObject ) : void | ||
ValidateProp ( |
public BOTestFactory ( |
||
boType | ||
Résultat | System.Collections |
protected CreateBusinessObject ( ) : IBusinessObject | ||
Résultat | IBusinessObject |
public CreateDefaultBusinessObject ( ) : IBusinessObject | ||
Résultat | IBusinessObject |
public CreateSavedBusinessObject ( ) : IBusinessObject | ||
Résultat | IBusinessObject |
public CreateValidBusinessObject ( ) : IBusinessObject | ||
Résultat | IBusinessObject |
public FixInvalidInterPropRules ( IBusinessObject bo ) : void | ||
bo | IBusinessObject | |
Résultat | void |
protected static GetPropDef ( IClassDef classDef, string propName, bool raiseErrIfNotExists ) : ISingleValueDef | ||
classDef | IClassDef | |
propName | string | |
raiseErrIfNotExists | bool | |
Résultat | ISingleValueDef |
protected static GetPropDef ( |
||
type | ||
propName | string | |
raiseErrIfNotExists | bool | |
Résultat | ISingleValueDef |
protected static GetRelationshipDef ( |
||
type | ||
relationshipName | string | |
raiseErrIfNotExists | bool | |
Résultat | IRelationshipDef |
public GetValidPropValue ( IBOProp boProp ) : object | ||
boProp | IBOProp | |
Résultat | object |
public GetValidPropValue ( IBusinessObject bo, string propName ) : object | ||
bo | IBusinessObject | |
propName | string | |
Résultat | object |
protected GetValidPropValue ( IClassDef classDef, string propName ) : object | ||
classDef | IClassDef | |
propName | string | |
Résultat | object |
public GetValidPropValue ( ISingleValueDef propDef ) : object | ||
propDef | ISingleValueDef | |
Résultat | object |
public GetValidPropValue ( |
||
type | ||
propName | string | |
Résultat | object |
public GetValidPropValue ( string propName ) : object | ||
propName | string | |
Résultat | object |
public GetValidRelationshipValue ( ISingleValueDef relationshipDef ) : IBusinessObject | ||
relationshipDef | ISingleValueDef | |
Résultat | IBusinessObject |
protected GetValidRelationshipValue ( |
||
type | ||
relationshipName | string | |
Résultat | IBusinessObject |
public GetValidValue ( IBusinessObject bo, string name ) : object | ||
bo | IBusinessObject | |
name | string | |
Résultat | object |
public GetValidValue ( string name ) : object | ||
name | string | |
Résultat | object |
public GetValidValueGenerator ( ISingleValueDef propDef ) : ValidValueGenerator | ||
propDef | ISingleValueDef | |
Résultat | ValidValueGenerator |
public SetPropValueToValidValue ( IBOProp boProp ) : void | ||
boProp | IBOProp | |
Résultat | void |
public SetRelationshipToValidValue ( ISingleRelationship singleRelationship ) : void | ||
singleRelationship | ISingleRelationship | |
Résultat | void |
public SetValueFor ( string propertyName, object propertyValue ) : void | ||
propertyName | string | |
propertyValue | object | |
Résultat | void |
public UpdateCompulsoryProperties ( IBusinessObject businessObject ) : void | ||
businessObject | IBusinessObject | |
Résultat | void |
protected static ValidateClassDef ( |
||
type | ||
Résultat | void |
protected static ValidateRelationshipDef ( |
||
type | ||
def | IRelationshipDef | |
relationshipName | string | |
Résultat | void |
protected BODefaultValueRegistry,Habanero.Testability _defaultValueRegistry | ||
Résultat |