C# Class Habanero.Testability.ValidValueGeneratorDate

Generates a valid value for PropDef of type DateTime.
Inheritance: ValidValueGenerator, IValidValueGeneratorNumeric
Afficher le fichier Open project: Chillisoft/habanero.testability Class Usage Examples

Méthodes publiques

Méthode Description
GenerateValidValue ( ) : object

Generates a valid value taking into account only the IPropRules. I.e. any InterPropRules will not be taken into account. The IValidValueGeneratorNumeric's methods are used by the BOTestFactory to create valid values taking into account InterPropRules

GenerateValidValueGreaterThan ( object minValue ) : object

Generates a Valid Value taking IPropRule and minValue into account.

GenerateValidValueLessThan ( object maxValue ) : object

Generates a Valid Value taking IPropRule and maxValue into account.

ValidValueGeneratorDate ( IPropDef propDef ) : Habanero.Base

Construct a Valid Value Generator with a PropDef

Private Methods

Méthode Description
GenerateValidValue ( System.DateTime overridingMinValue, System.DateTime overridingMaxValue ) : System.DateTime
GetMaxValue ( IPropRuleComparable propRule, System.DateTime overridingMaxValue ) : System.DateTime
GetMinValue ( IPropRuleComparable propRule, System.DateTime overridingMinValue ) : System.DateTime

Method Details

GenerateValidValue() public méthode

Generates a valid value taking into account only the IPropRules. I.e. any InterPropRules will not be taken into account. The IValidValueGeneratorNumeric's methods are used by the BOTestFactory to create valid values taking into account InterPropRules
public GenerateValidValue ( ) : object
Résultat object

GenerateValidValueGreaterThan() public méthode

Generates a Valid Value taking IPropRule and minValue into account.
public GenerateValidValueGreaterThan ( object minValue ) : object
minValue object
Résultat object

GenerateValidValueLessThan() public méthode

Generates a Valid Value taking IPropRule and maxValue into account.
public GenerateValidValueLessThan ( object maxValue ) : object
maxValue object
Résultat object

ValidValueGeneratorDate() public méthode

Construct a Valid Value Generator with a PropDef
public ValidValueGeneratorDate ( IPropDef propDef ) : Habanero.Base
propDef IPropDef
Résultat Habanero.Base